######################################### 
### Iberian & gaelic events by Korall ### 
######################################### 


event = { 

   id = 5133 
   trigger = {
	NOT = { flag = e5133 }
	not = {
		AND = {
			exists = EIR 
			exists = SCO 
		}
	}    
	owned = { province = 238 data = -1} 
	owned = { province = 232 data = -1} 
	NOT = {
		AND = {
			owned = { province = 385 data = -1} # Париж
			owned = { province = 376 data = -1} # Шампань
			owned = { province = 386 data = -1} # Ниверне
			owned = { province = 408 data = -1} # Лионне
			owned = { province = 422 data = -1} # Лангедок
		}
	}
#	or = { 
#		event = 3004 
#		event = 20008 
#		event = 20015 
#		event = 20016 
#		event = 20017 
#		event = 20022 
#		event = 20023 
#	}
	NOT = {
		core = { province = 236 data = ENG }
		core = { province = 414 data = ENG }
	}
      } 
   random = no 
   country = ENG 
   name = "Гальская культура" 
   desc = "Держава Англия подчинила себе Британские острова, создав прообраз Великобритании" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "Да здравствует Великобритания !" 
	command = { type = badboy value = -5 }
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 236 } # Шотландия
	command = { type = addcore which = 237 }
	command = { type = addcore which = 238 }
	command = { type = addcore which = 239 }
	command = { type = addcore which = 414 } # Бретань
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = sleepevent which = 5134 }
	command = { type = setflag which = e5133 }
   } 
} 

event = { 

   id = 5134 
   trigger = {
	NOT = { flag = e5134 }
	not = {
		AND = {
			exists = EIR 
			exists = SCO
		}
	}
	owned = { province = 231 data = -1} 
	owned = { province = 232 data = -1} 
	owned = { province = 234 data = -1} 
	owned = { province = 235 data = -1} 
	or= { 
		owned = { province = 233 data = -1} 
		owned = { province = 416 data = -1} 
	}
	NOT = {
		core = { province = 231 data = POR }
		core = { province = 414 data = POR }
	}
      } 
   random = no 
   country = POR 
   name = "Гальская культура" 
   desc = "Португальское завоевание Ирландии позволило иберийцам прочно обосноваться на острове и стать доминирующей державой в регионе" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "Возьмём колонизацию Северной Америки в свои руки"
	command = { type = badboy value = -5 }
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 231 } # Ирландия
	command = { type = addcore which = 232 }
	command = { type = addcore which = 233 }
	command = { type = addcore which = 234 }
	command = { type = addcore which = 235 }
	command = { type = addcore which = 414 } # Бретань
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = setflag which = e5133 }
	command = { type = sleepevent which = 5134 } 
	}
} 

event = { 

   id = 5135 
   trigger = { 
	NOT = { flag = e5135 }
	not = { 
		exists = CAS 
		exists = SPA
	}
	owned = { province = 436 data = -1} 
	NOT = {
		core = { province = 436 data = POR }
	}
      } 
   random = no 
   country = POR 
   name = "Ибериийский полуостров наш!!!" 
   desc = "Не сумев выстоять против Португалии, держава Кастилия прекратила своё существование передав статус основного иберийского государства победителям. Таким образом Португалия стала одной из сильнейших держав того времени с неограниченными возможностями колониальной экспансии" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
            deathdate = { day = 1 month = january year = 1490 } 
    
   action_a ={             
      name = "Нет Испании !"
	command = { type = badboy value = -5 }
      command = { type = stability value = 2 } 
      command = { type = addcore which = 429 } 
      command = { type = addcore which = 430 } 
      command = { type = addcore which = 431 } 
      command = { type = addcore which = 432 } 
      command = { type = addcore which = 433 } 
      command = { type = addcore which = 435 } 
      command = { type = addcore which = 436 } 
      command = { type = addcore which = 437 } 
      command = { type = addcore which = 438 } 
      command = { type = addcore which = 439 } 
      command = { type = addcore which = 440 } 
      command = { type = addcore which = 443 } 
      command = { type = addcore which = 444 } 
      command = { type = addcore which = 445 }
      command = { type = setflag which = e5135 }   
   } 
} 

event = { 

   id = 5136 
   trigger = {
	not = {
		owned = { province = 436 data = -1}
	}
	NOT = { flag = e5136 }
	flag = e5135
	core = { province = 436 data = POR }
      } 
   random = no 
   country = POR 
   name = "Потеря кастильского наследия" 
   desc = "Не сумев отстоять своё право главного иберийского государства и потеряв Мадрид, держава Португалия переместила свои интересы на освоение Нового Света" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1490 } 
    
   action_a ={             
      name = "Горе нам!!!" 
      command = { type = stability value = -1 } 
      command = { type = removecore which = 429 } 
      command = { type = removecore which = 430 } 
      command = { type = removecore which = 431 } 
      command = { type = removecore which = 432 } 
      command = { type = removecore which = 433 } 
      command = { type = removecore which = 435 } 
      command = { type = removecore which = 436 } 
      command = { type = removecore which = 437 } 
      command = { type = removecore which = 438 } 
      command = { type = removecore which = 439 } 
      command = { type = removecore which = 440 } 
      command = { type = removecore which = 443 } 
      command = { type = removecore which = 444 } 
      command = { type = removecore which = 445 }
	command = { type = setflag which = e5136 }   
   } 
} 

# Следующий ивент я переписал у Кастилии и чуть-чуть изменил. 
event = { 
   id = 5137 
        trigger = {
	not = { flag = e5136 } 
        flag = e5135  
        owned = { province = 443 data =-1 } 
	owned = { province = 445 data =-1 } 
	owned = { province = 436 data =-1 }
	} 
   random = no 
   country = POR 
   name = "EVENTNAME3150" 
   desc = "EVENTHIST3150" 
   style = 1 

   date = { day = 1 month = january year = 1493 } 
	offset = 0
	deathdate = { day = 2 month = january year = 1493 } 

   action_a ={ name = "ACTIONNAME3150A" 
      command = { type = domestic which = INNOVATIVE value = -3 } 
      command = { type = population which = 443 value = -18000 } 
      command = { type = population which = 439 value = -8000 } 
      command = { type = population which = 438 value = -5000 } 
      command = { type = religiousrevolt which = 438 } 
      command = { type = religiousrevolt which = 443 } 
      command = { type = provincereligion which = 438 value = catholic } 
      command = { type = provincereligion which = 443 value = catholic } 
      command = { type = stability value = -1 } 
      command = { type = trigger which = 3654 } 
      command = { type = trigger which = 3652 } 
      command = { type = trigger which = 3657 } 
      command = { type = sleepevent which = 3150 }
   } 

   action_b ={ name = "ACTIONNAME3150B" 
      command = { type = domestic which = INNOVATIVE value = -4 } 
      command = { type = population which = 443 value = -20000 } 
      command = { type = population which = 439 value = -9000 } 
      command = { type = population which = 438 value = -6000 } 
      command = { type = population which = 444 value = -24000 } 
      command = { type = population which = 445 value = -3500 } 
      command = { type = provincereligion which = 438 value = catholic } 
      command = { type = provincereligion which = 443 value = catholic } 
      command = { type = provincereligion which = 444 value = catholic } 
      command = { type = provincereligion which = 445 value = catholic } 
      command = { type = religiousrevolt which = 438 } 
      command = { type = religiousrevolt which = 443 } 
      command = { type = religiousrevolt which = 444 } 
      command = { type = religiousrevolt which = 445 } 
      command = { type = stability value = -3 } 
      command = { type = trigger which = 3728 } 
      command = { type = trigger which = 3729 } 
      command = { type = trigger which = 3730 } 
      command = { type = sleepevent which = 3150 } 
   } 
} 

## Может эти ивенты сделать в двойном экземпляре (чуть-чуть подправив) или оставить так как есть. 
event = { 

   id = 5138 
   trigger = {
	NOT = { event = 5138 }
        not = { 
		AND = {
			exists = EIR 
			exists = SCO 
		}
	}    
	owned = { province = 238 data = -1} 
	owned = { province = 232 data = -1} 
	flag = e5134 
	NOT = {
		AND = {
			owned = { province = 385 data = -1} # Париж
			owned = { province = 376 data = -1} # Шампань
			owned = { province = 386 data = -1} # Ниверне
			owned = { province = 408 data = -1} # Лионне
			owned = { province = 422 data = -1} # Лангедок
		}
	}
	NOT = {
		core = { province = 236 data = ENG }
		core = { province = 414 data = ENG }
	}
	}
   random = no 
   country = ENG 
   name = "Отбор у Португалии гальской культуры" 
   desc = "Правление Португалии в Ирландии так и не нашло поддержки местной знати. Скоро южане были свергнуты, и Британскими островами стала править Англия" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "Мы отобрали у португальцев наши провинции!!!" 
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 236 } # Шотландия
	command = { type = addcore which = 237 }
	command = { type = addcore which = 238 }
	command = { type = addcore which = 239 }
	command = { type = addcore which = 414 } # Бретань
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = trigger which = 5139 }
	command = { type = setflag which = e5138 }
   } 
} 

event = { 

   id = 5139 
   random = no 
   country = POR 
   name = "Потеря гальской культуры" 
   desc = "Правление Португалии в Ирландии так и не нашло поддержки местной знати. Скоро южане были свергнуты, и Британскими островами стала править Англия" 
   style = 1 

   action_a ={             
	name = "Англичане отобрали у нас провинции!!!" 
	command = { type = stability value = -2 } 
	command = { type = remove_countryculture which = gaelic } 
	command = { type = removecore which = 231 } # Ирландия
	command = { type = removecore which = 232 }
	command = { type = removecore which = 233 }
	command = { type = removecore which = 234 }
	command = { type = removecore which = 235 }
	command = { type = removecore which = 414 } # Бретань
	command = { type = removecore which = 415 }
	command = { type = removecore which = 416 }
	} 
} 

event = { 

   id = 5242 
   trigger = {
	NOT = { flag = e5242 }
	not = { 
		AND = {
			exists = EIR
			exists = SCO
		}
	}
	owned = { province = 231 data = -1} 
	owned = { province = 232 data = -1} 
	owned = { province = 234 data = -1} 
	owned = { province = 235 data = -1} 
	or= { 
		owned = { province = 233 data = -1} 
		owned = { province = 416 data = -1} 
	}
	flag = e5133
	NOT = {
		core = { province = 231 data = POR }
		core = { province = 414 data = POR }
	}
	}
   random = no 
   country = POR 
   name = "Отбор у Англии гальской культуры" 
   desc = "Англичанам не удалось укрепить свою власть над Британскими островами, и вскоре пришли завоеватели с юга - Португалия стала доминирующей державой в регионе" 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "Мы отобрали у англичан наши провинции!!!" 
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 231 } # Ирландия
	command = { type = addcore which = 232 }
	command = { type = addcore which = 233 }
	command = { type = addcore which = 234 }
	command = { type = addcore which = 235 }
	command = { type = addcore which = 414 } # Бретань
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = trigger which = 5243 }
	command = { type = setflag which = e5242 } 
   } 
} 

event = { 
   id = 5243    
   random = no 
   country = ENG 
   name = "Потеря гальской культуры" 
   desc = "Англичанам не удалось укрепить свою власть над Британскими островами, и вскоре пришли завоеватели с юга - Португалия стала доминирующей державой в регионе" 
   style = 1 

   action_a ={             
	name = "Португальцы отобрали у нас провинции!!!" 
	command = { type = stability value = -2 }
	command = { type = removecore which = 236 } # Шотландия
	command = { type = removecore which = 237 }
	command = { type = removecore which = 238 }
	command = { type = removecore which = 239 }
	command = { type = removecore which = 414 } # Бретань
	command = { type = removecore which = 415 }
	command = { type = removecore which = 416 }
	command = { type = remove_countryculture which = gaelic } 
	}
}