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

Black Guardian

Major
25 Badges
Dec 31, 2005
590
25
  • Europa Universalis IV: El Dorado
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Steel Division: Normandy 44
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Cities in Motion
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II
  • Cities in Motion 2
Hey guys,

i think i´ve got a little problem with an event:

Code:
event = { 
	id = 60021
	country = U19
	random = no
	picture = häuserkampf

	trigger = {
			NOT = { control = { province = 465 data = U19 }}
		OR = {	NOT = { control = { province = 462 data = U19 }} }
		OR = {	NOT = { control = { province = 461 data = U19 }} }
		OR = { 	NOT = { control = { province = 464 data = U19 }} }



}
		
	name = "Schlacht um Wien"
	desc = "Im erbitterten Häuserkampf stellen sich die Verteidiger Wiens gegen ihre Angreifer. Bis zum letzten Manne soll gekämpft werden!"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 1 month = december year = 2200 }

	action_a = { name = "Setzt die Landwehr ein!"
	

		command = { type = dissent value = 5 }			 	
		command = { type = add_corps which = "Landwehr WIEN" value = land where = 463 }	
		command = { type = add_division which = "1. Landwehrgruppe Wien" value = militia when = 3 }			
		command = { type = add_division which = "2. Landwehrgruppe Wien" value = militia when = 3 }
		command = { type = add_division which = "3. Landwehrgruppe Wien" value = militia when = 3 }
		command = { type = add_division which = "Wiener Garde" value = cavalry when = 0 }
		command = { type = manpowerpool value = -45 }


} 

}

It doesn´t really work...
I guess the problem is, that i used the "or" three times, isn´t it?
I want to have an event, which is triggered if Linz OR Hollabrunn OR Salzburg OR Graz OR Klagenfurt is not under the control of my country -> in enemy hands

Any suggestions how to solve this problem?
 

unmerged(43424)

First Lieutenant
Apr 22, 2005
206
0
Then you should write :

or = {

not = { control = { province = 465 data = U19 }
not = { control = { province = 462 data = U19 }
not = { control = { province = 461 data = U19 }
not = { control = { province = 464 data = U19 }

}

if ANY of the conditions inside the or = { happens then the trigger is true