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

Emre Yigit

Creeping out of Covid hibernation
73 Badges
Jun 13, 2001
5.462
3.803
  • Cities: Skylines - Snowfall
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Semper Fi
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Battle for Bosporus
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
OK guys, I need your help in figuring something out. Let me first set forth the event:


event = {
id = 1000000
random = no
province = 1697

date = { day = 2 month = january year = 1836 }
offset = 30
deathdate = { day = 30 month = december year = 1837 }

trigger = {
NOT = { exists = MEX }
NOT = { continent = america }
}


name = "Mexico declares independence!"
desc = "In the 16 years that your Lordship has been away, the Empire has been racked with revolt. Our colonies in the Americas have declared a desire for independence."

action_a = {
name = "History marches on" # Accept the inevitable
ai_chance = 85
command = { type = independence which = MEX value = 0 } # Mexico
}
action_b = {
name = "Let us amend history" # Vassalisation, supposedly. But does not work.
ai_chance = 14
command = { type = independence which = MEX value = 1 } # Mexico
command = { type = prestige value = 30 }
}
action_c = {
name = "History is bunk!" # Amended event
ai_chance = 1
command = { type = prestige value = 10 }
command = { type = pop_militancy which = labourers value = 1 }
command = { type = pop_militancy which = farmers value = 1 }
command = { type = pop_militancy which = clergymen value = -1 }
command = { type = pop_militancy which = soldiers value = -1 }
command = { type = pop_militancy which = officers value = -1 }
command = { type = pop_militancy which = clerks value = 1 }
command = { type = pop_militancy which = craftsmen value = 1 }
}
}


The problem is that both option a and option b result in independence. Despite what the event_commands.txt says, putting the value = 1 in event b only means that you retain any armies.... but does not grant vassalisation. Where's the problem?

PS Event fires OK, don't worry about the dates and stuff - its for the EU2Vic optional events files.
 

Emre Yigit

Creeping out of Covid hibernation
73 Badges
Jun 13, 2001
5.462
3.803
  • Cities: Skylines - Snowfall
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Semper Fi
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Battle for Bosporus
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
SHOCKING

Over 5 hours and not a single reply??!! ;)
 

Emre Yigit

Creeping out of Covid hibernation
73 Badges
Jun 13, 2001
5.462
3.803
  • Cities: Skylines - Snowfall
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Semper Fi
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Battle for Bosporus
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
OK, I'll answer my own question. :)

The proper way to go about this is to change

action_b = {
name = "Let us amend history" # Vassalisation, supposedly. But does not work.
ai_chance = 14
command = { type = independence which = MEX value = 1 } # Mexico
command = { type = prestige value = 30 }
}


with

action_b = {
name = "Let us amend history"
ai_chance = 14
command = { type = make_dominion [ED: or make_satellite] which = MEX }
command = { type = prestige value = 30 }
}


FYI.