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

Amartus

Captain
34 Badges
Jul 14, 2008
441
12
  • Hearts of Iron Anthology
  • Semper Fi
  • Europa Universalis: Rome
  • Iron Cross
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Deus Vult
  • Darkest Hour
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Ancient Space
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Arsenal of Democracy
  • Rome Gold
Lots of event questions recently, but that is good - shows we are all still keen! Anyway, here is mine.

event = {
id = 50505145
picture = "constitutional"
country = CAN

trigger = { NOT = {
control = { province = 588 data = CAN }
} }

name = "Peace for the Canadians 1"
desc = "Peace for the Canadians 1"

date = { day = 10 month = january year = 1936 }
offset = 1
deathdate = { day = 10 month = january year = 1964 }

action_a = {
name = "It has come to this...."
command = { type = leave_alliance }
command = { type = trigger which = 50505146 }
}
}
event = {
id = 50505146
picture = "constitutional"
country = CAN

# 50505145

name = "Peace for the Canadians 2"
desc = "Peace for the Canadians 2"

action_a = {
name = "We have no choice!"
command = { type = peace which = CSA value = 1 }
command = { type = peace which = FRA value = 1 }
command = { type = peace which = ENG value = 1 }
command = { type = peace which = JAP value = 1 }
command = { type = peace which = CSA value = 0 }
command = { type = peace which = FRA value = 0 }
command = { type = peace which = ENG value = 0 }
command = { type = peace which = JAP value = 0 }
}
}
This is for a game of Kaiserreich I am playing. The events are supposed to force a peace between Canada and the CSA and any other possible opponents when Ottawa is captured. Now the first event triggers. The second does not trigger via the first event as it is supposed to, but if I can trigger it via the console. But this does diddly squat; the CSA will NOT make peace with Canada. Is there a reason for this? I mean, why does the event work but not work if you know what I mean?

Any and all help (or guesses even) towards solving this problem of mine greatly appreciated.

Thanks in advance,
Amartus
 
I don't understand why you use two events to make it, one would be totally enough. If you use command command = { type = peace which = CSA value = 1 } and set value to 1, that will be a separate peace which pull out the country from the alliance. I reccomend you to use the following event:

event = {
id = 50505145
picture = "constitutional"
country = CAN

trigger = {
NOT = {
control = { province = 588 data = CAN }
}
}

name = "Peace for the Canadians 1"
desc = "Peace for the Canadians 1"

date = { day = 10 month = january year = 1936 }
offset = 1
deathdate = { day = 10 month = january year = 1964 }

action_a = {
name = "It has come to this...."
command = { type = peace which = CSA value = 1 }
command = { type = peace which = FRA value = 1 }
command = { type = peace which = ENG value = 1 }
command = { type = peace which = JAP value = 1 }
}
}