#***************************************************************************************************
# (NOTE!!!	EACH event has to have a completely unique ID.)
#
#***************************************************************************************************






#***************************************************************************************************
# TRIGGERS
#***************************************************************************************************


  religion = relname						
	# checks if country getting event has religion relname
  leader = xx 
	# checks if leader xx is alive
  event = xx
	# checks if event xx has occurred
  owned = { province = a data = tag }
	# checks if province is owned by country x (if data == -1 then its for country receievin event)
  continent = name
	# checks if country getting event has its capital on continennt x
  exist = country
	# checks if country X exists
  alliance = { country =a  country = b )
	# checks if a and b is in the same military alliance
  war = { country =a  country = b )
	# checks if a and b is at war
  dynastic = { country =a  country = b )
  vassal = { country =a  country = b )
	# checks if a and b has a royal marriage
	-  domestic	( type = field value = x )
	-  core ( province = x data = tag }
	-  stability = x
	-  land = x	   
	-  naval = x
	-  infra = x
	-  trade = x
	-  discovered = x
	-  cot = x
	- atwar = yes
	- year = x








#***************************************************************************************************
# Commands are
#***************************************************************************************************



# -------------
#
#	type = 	revolt	   			 
#							which = prov num or -1 for random		             #        			
#							value = 			
#
#	type = 	religiousrevolt		  
#							which = prov num or -1 for random		             #        			 			
#							value = 			
#
#	type = 	colonialrevolt		  
#							which = prov num or -1 for random 			
#							value = 			
#
#	type = 	heretic				  
#							which = prov num or -1 for random			
#							value = 			
#
#	type = 	conversion			  
#							which = prov num or -1 for random			
#							value = 			
#
#	type = 	provincereligion	  
#							which = prov num or -1 for random			
#							value = religion			
#
#	type = 	ADM					  
#							which = value			
#							value = months			
#
#	type = 	DIP					  
#							which = value			
#							value = months			
#
#	type = 	MIL					  
#							which = value months			
#							value = 			
#
#	type = 	domestic			  
#							which = field			
#		aristocracy, centralization, innovative, mercantilism, offensive, land, quality, serfdom
#							value = #change			
#
#	type = 	religion			  
#							which = which 			
#							value = 			
#
#	type = 	revoltrisk			  
#							which = 			
#							value = #howmuch 			
#
#	type = 	inflation			  
#							which = 			
#							value = #change
#
#	type = 	dynastic			  
#							which = country (-1 for random)
#							value = 			
#
#	type = 	vassal				  
#							which = country (-1 for random) 			
#							value = 			
#
#	type = 	alliance			  
#							which = country (-1 for random)			
#							value = 			
#
#	type = 	inherit				  
#							which = country (-1 for random)			
#							value = 			
#
#	type = 	treasury			  
#							which = 			
#							value = #change
#
#	type = 	manpower			  
#							which = 			
#							value = #change			
#
#	type = 	land				  
#							which = 			
#							value = #change			
#
#	type = 	naval				  
#							which = 			
#							value = #change			
#
#	type = 	infra				  
#							which = 			
#							value = #change			
#
#	type = 	trade				  
#							which = 			
#							value = #change			
#
#	type = 	stability			  
#							which = 			
#							value = #change			
#
#	type = 	diplomats			  
#							which = 			
#							value = #change			
#
#	type = 	colonists			  
#							which = 			
#							value = #change			
#
#	type = 	merchants			  
#							which = 			
#							value = #change
#
#	type = 	missionaries		  
#							which = 			
#							value = #change 			
#
#	type = 	conquistador		  
#							which = provnum or -1 for random                          				
#							value = 			
#
#	type = 	explorer			  
#							which = provnum or -1 for random                          				
#							value = 			
#
#	type = 	leader				  
#							which = leader id			
#							value = 			
#
#	type = 	country				  
#							which = which 			
#							value = 			
#
#	type = 	relation			  
#							which = country 			
#							value = #howmuch			
#
#	type = 	gainmanufactory		  
#							which = provnum or -1 for random			
#							value = which type 			
#
#	type = 	losemanufactory		  
#							which = provnum or -1 for random			
#							value = 			
#
#	type = 	gainbuilding		  
#							which = provnum or -1 for random			
#							value = which type			
#
#	type = 	losebuilding		  
#							which = provnum or -1 for random   		
#							value = which 			
#
#	type = 	desertion			  
#							which = provnum or -1 for random			
#							value = #howmuch 			
#
#	type = 	fortress			  
#							which = provnum or -1 for random			
#							value = #change 			
#
#	type = 	population			  
#							which = provnum or -1 for random			
#							value = #change 			
#
#	type = 	INF					  
#							which = provnum or -1 for random			
#							value = amount			
#
#	type = 	CAV					  
#							which = provnum or -1 for random			
#							value = amount			
#
#	type = 	ART					  
#							which = provnum or -1 for random			
#							value = amount			
#
#	type = 	warships			  
#							which = provnum or -1 for random			
#							value = amount			
#
#	type = 	galleys				  
#							which = provnum or -1 for random			
#							value = amount 			
#
#	type = 	transports			  
#							which = provnum or -1 for random			
#							value = amount			
#
#	type = 	provincetax			  
#							which = provnum or -1 for random			
#							value = #change 			
#
#	type = 	provincemanpower	  
#							which = provnum or -1 for random			
#							value = #change 			
#
#	type = 	mine				  
#							which = provnum or -1 for random			
#							value = #change			
#	type = 	culture				  
#							which = provnum or -1 for random			
#							value = whichone (-1 for state culture)
#
#	type = 	flag			which = event_flag			
#							value = 			
#
#	type = 	trigger			which = event-id 			
#							value = 			
#
#
#	type = vp				which = 
#							value = #change
#
#	type = casusbelli		which = country			
#							value = months
#
#	type = capital			which = provnum or -1 for random
#							value = 
#
#	type = natives			which = provnum or -1 for random
#							value = aggrovalue
#
#	type = addcore			which = provnum
#							value = 
#
#	type = removecore			which = provnum
#							value = 
#
#	type = cot				which = provnum
#							value = 
#
#	type = secede				which = country
#						value = provice
#
#	type = province_revoltrisk		which = province
#						value = howmuch
#
#	type = sleepmonarch			which = monarchid
#						value = 
#
#	type = sleepleader			which = leaderid
#						value =
#
#	type = add_countryculture		which = culture
#						value = 
#
#	type = remove_countryculture		which = culture
#						value = 
#
#	type = loansize				which = 
#						value = howbig
#













#***************************************************************************************************
#  Example Event
#***************************************************************************************************



#
#	(an event can have up to 4 selectable actions)
#
#event = { 
#
#
#
#	id = 1 
#	random = yes
#	name = "Event Title"
#	desc = "descriptive text"
#	country = xxx
#	style = x
#	trigger = {
#			#if you want a boolean chain of conditions for it
#	}
#
#
#	date = { date }
#	offset = xxx			#random number of dates to start even of from date
#	deathdate = { date }		# last checking date if its triggers
#
#	action_a = {
#			name = "Button Name I"
#			command = { type = treasury value = 100 }
#			command = { type = vp value = -20 }
#		}
#
#	action_b = {
#			name = "Button Name II"
#			command = { type = relation which = FRA value = -50 }
#			command = { type = vp value = 5 }
#		}
#
#	}
#
#
#
