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

unmerged(7597)

squarian at the AGEOD forum
Feb 3, 2002
514
0
Visit site
Can anyone tell me if this trigger statement achieves what I want it to achieve - namely, that England will inherit Scotland if a) SCO is ENG's vassal, or B) if ENG owns the five provinces listed. (This is a modification to Johnny Canuck's eep event).

event = {

id = 3037
trigger =
OR = { vassal = { country = ENG country = SCO }
{
owned = { province = 232 data = -1 }
owned = { province = 236 data = -1 }
owned = { province = 237 data = -1 }
owned = { province = 238 data = -1 }
owned = { province = 239 data = -1 }
}
random = no
country = ENG
name = "EVENTNAME3037"
desc = "EVENTHIST3037"
style = 4

date = { day = 1 month = january year = 1700 }
offset = 3650
deathdate = { day = 1 month = january year = 1820 }

action_a ={ #We are Great Britain#
name = "ACTIONNAME3037A"
command = { type = flag which = 6 }
command = { type = provinceculture which = 238 value = anglosaxon }
command = { type = provinceculture which = 239 value = anglosaxon }
command = { type = provinceculture which = 232 value = anglosaxon }
command = { type = domestic which = CENTRALIZATION value = 1 }
command = { type = stability value = 1 }
command = { type = inherit which = SCO }
}
}
 

Havard

Dark Power
49 Badges
Jun 28, 2001
15.686
170
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • 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: 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
  • Europa Universalis IV: Res Publica
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • 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
  • Cities: Skylines - After Dark
Try this trigger:
Code:
[color=white]
trigger = {
	OR = { 
		vassal = { country = ENG country = SCO }
		AND = { 
			owned = { province = 232 data = -1 }
			owned = { province = 236 data = -1 }
			owned = { province = 237 data = -1 }
			owned = { province = 238 data = -1 }
			owned = { province = 239 data = -1 }
		}
	}
}[/color]
 

unmerged(6159)

Field Marshal
Oct 23, 2001
9.458
1
Visit site
Or
Code:
[color=white]trigger = {
	OR = { 
		vassal = { country = ENG country = SCO }
		owned = { province = 232 data = -1 }
		}
 	OR = { 
		vassal = { country = ENG country = SCO }
		owned = { province = 236 data = -1 }
		}
 	OR = { 
		vassal = { country = ENG country = SCO }
		owned = { province = 237 data = -1 }
		}
 	OR = { 
		vassal = { country = ENG country = SCO }
		owned = { province = 238 data = -1 }
		}
 	OR = { 
		vassal = { country = ENG country = SCO }
		owned = { province = 239 data = -1 }
	}
}[/color]
You did say somehting about Boolean logic :D