could you help me understand this part of the mod ? (event, trigger part)

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

juice99

Captain
37 Badges
Jan 17, 2005
318
39
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Iron Cross
  • Leviathan: Warships
I'm not sure i understand this trigger, i read some guides here http://www.paradoxian.org/hoi2wiki/index.php/Mods but they are very basic, and nothing about the trigger part. it's from AAR mod, i'm playing as ottoman empire in WW1 and i'm winning the war, but i got the message that i'm not... and i had to surrender... well... so i'm trying to understand this mod (i know how to disable it of course):

Code:
	trigger = { 
		random = 20 
		OR = { 
			war = { country = OTT country = ENG } 
			war = { country = OTT country = FRA } 
			war = { country = OTT country = RUS } 
		}
		control = { province = 409 data = OTT }	# Must control Constantinople
		NOT = { control = { province = 1172 data = OTT } } # Jerusalem
		NOT = { control = { province = 1022 data = OTT } } # Amman
		NOT = { control = { province = 900 data = OTT } } # Suez
		NOT = { control = { province = 663 data = OTT } } # Tsaritsyn
		OR = {	# Baghdad, Trabzon or Damascus
			NOT = { control = { province = 1067 data = OTT } } #Trabzon
			NOT = { control = { province = 1034 data = OTT } } #Baghdad
			NOT = { control = { province = 1016 data = OTT } } #Damascus
		}
	}

i'm at war and i have constantinopole, and then i don't understand what is relation between different conditions. default is AND ?
NOT = { control = { province = 1172 data = OTT } } # Jerusalem
NOT = { control = { province = 1022 data = OTT } } # Amman
[...]

means i do not control Jerusalem AND Amman AND Suez AND Tsaritsyn ? Meaning, i have to control all four provinces for this event to not fire?

also what is the meaning of this OR - is it about relation between all previous conditions, or is it about the next ones that are in the brackets {} ?

meaning that for this event to not fire i have to control Jerusalem, Amman, Suez, Tsaritsyn AND one of the following 3 provinces: Trabzon, Damascus, Baghdad

Is it correct?

Because Amman, Damascus , Jerusalem, Baghdad and Trabzon are under my control, only Suez is not and this event still fired

oh, and what is Tsaritsyn ? no such provinence, according to wiki, it's called Volgograd in Russia, but no such provinence too. geographically it looks as it is somewhere around Volgodonsk in-game provinence, i guess a little similar name, but not sure... but this provinence i cannot control, because i was not at war with russia, i joined later when russia made peace
 
Last edited:

juice99

Captain
37 Badges
Jan 17, 2005
318
39
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Iron Cross
  • Leviathan: Warships
The only thing i can tell you for sure is that Tsaritsyn is Stalingrad but under the tsar not Stalin hence the name ;)

this i know from wiki ;) no Stalingrad in-game though. in game it is called Carycyn, i just found out. it's small so you have to click it to see it's name

but i still don't understand this event
 

novapaddy

War-Father
103 Badges
Aug 26, 2009
8.904
1.314
  • The Kings Crusade
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Lead and Gold
  • Legio
  • Arsenal of Democracy
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron Anthology
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • East India Company
  • East India Company Collection
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
trigger = {

random = 20 ..... trigger will happen 20 times out of 100

OR = {
war = { country = OTT country = ENG } ... OR this
war = { country = OTT country = FRA } ... or this
war = { country = OTT country = RUS } ... OR THIS ... any one of these to be true

}

control = { province = 409 data = OTT } # Must control Constantinople.... must control province 409


NOT = { control = { province = 1172 data = OTT } } # Jerusalem.... not in control of any of these
NOT = { control = { province = 1022 data = OTT } } # Amman
NOT = { control = { province = 900 data = OTT } } # Suez
NOT = { control = { province = 663 data = OTT } } # Tsaritsyn


OR = { # Baghdad, Trabzon or Damascus
NOT = { control = { province = 1067 data = OTT } } #Trabzon.... or not in control of ANY 1 of these
NOT = { control = { province = 1034 data = OTT } } #Baghdad
NOT = { control = { province = 1016 data = OTT } } #Damascus
}
}
 

juice99

Captain
37 Badges
Jan 17, 2005
318
39
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Iron Cross
  • Leviathan: Warships
what is the difference between "not in control of any of these" and "not in control of ANY 1 of these" ?

so i have to be in control of ALL listed provinces? why create such strange syntax if i have to have all these provinces, isn't it easier to just list them one after another , why such strange 'OR' ?
 

novapaddy

War-Father
103 Badges
Aug 26, 2009
8.904
1.314
  • The Kings Crusade
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Lead and Gold
  • Legio
  • Arsenal of Democracy
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron Anthology
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • East India Company
  • East India Company Collection
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
IS at war with ENG, FRA, or Russia.. sorry I got confused with so many NOT's

must control prov 409

must not control any of the next 4 provs

must not be in control of any 1 of these... meaning that if OTT does control any 1 of these, the event does not fire

EDIT: I fully understand where you are coming from. Events are coded like computer programs, but you will get used to it very quickly.
 
Last edited:

^_AC_^

Field Marshal
84 Badges
Feb 24, 2009
5.695
327
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Warlock 2: The Exiled
  • Crusader Kings II: Conclave
  • 500k Club
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Common Sense
  • Stellaris: Ancient Relics
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris Sign-up
  • Europa Universalis IV: Golden Century
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome Deluxe Edition
must not be in control of any 1 of these... meaning that if OTT does control any 1 of these, the event does not fire
No, this is not correct.

This event (Ottoman surrender not by losing Costantinople but by losing other important cities) fires if:
- OTT is at war with ENG, FRA or RUS
- OTT still controls 409 Constantinople (there is a separate event for losing the city)
- OTT doesn't control Jerusalem and Amman (so it lose the Palestinian zone)
- OTT doesn't control Suez (so it's not doing good against the British)
- OTT doesn't control Tsaritsyn/Stalingrad/Volvograd (so it's not doing good against the Russian)
- finally, it must also have lost at least one of the following: Trabzon, Baghdad, Damascus
 

juice99

Captain
37 Badges
Jan 17, 2005
318
39
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Iron Cross
  • Leviathan: Warships
so my original explanation was right i guess

I was not at war with Russia at all, so why would i have to have russian provinces... i think it could use some additional conditions

am i stuck in never-ending war if this event will not fire by the way?
 

juice99

Captain
37 Badges
Jan 17, 2005
318
39
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Iron Cross
  • Leviathan: Warships
by being right i meant my interpretation of the trigger part concerning provinces.

if i was not right, then i'm now even more confused.

I know i can still surrender when i'm not at war with russia, what i meant was that it's impossible to have Russian provinces while not even being at war with Russia. but lets forget this part, it's something different. as to the topic:

for this event to trigger, other that wars and having Constantinopole I need to not have ALL of the following Provinces: Jerusalem, Amman, Suez, Tsaritsyn or not have at least 1 of these 3: Trabzon, Baghdad, Damascus

is that correct?

Meaning, that if i had Jerusalem and Trabzon and Baghdad and Damascus this event shouldn't have triggered...
 
Last edited: