#The Union of Brest# 
event = { 
 id = 25000 
 trigger = { 
                flag = counter_poland
  NOT = { exists = BYZ } 
} 
 random = no 
 country = POL 
 name = "EVENTNAME25000" 
 desc = "EVENTHIST25000"
 style = 2 
 date = { day = 1 month = january year = 1595 } 
 offset = 60 
 deathdate = { day = 1 month = january year = 1620 } 
 action_a = { #Accept the Union# 
  name = "ACTIONNAME25000A" 
  command = { type = conversion which = 288 } 
  command = { type = conversion which = 1426 } 
                command = { type = conversion which = 1397 } 
                command = { type = conversion which = 298 } 
                command = { type = missionaries value = 6 }
  command = { type = revoltrisk which = 60 value = 4 } 
  } 
 action_b = { #Reject the Union# 
  name = "ACTIONNAME25000B" 
  command = { type = stability value = 1 } 
               command = { type = relation which = PAP value = -50 }
  } 
} 

#Khmelnytsky's Revolt# 
event = { 
 id = 25001 
 trigger = { 
        
NOT = {  domestic = { type = innovative value = 8 } }
     domestic = { type = aristocracy value = 6 }
     domestic = { type = serfdom value = 5 }
  
OR = { 

owned = { province = 294 data = -1 } 
owned = { province = 297 data = -1 } 
owned = { province = 1430 data = -1 } 
owned = { province = 461 data = -1 } 
}

} 
 random = no 
 country = POL 
 name = "EVENTNAME25001" 
 desc = "EVENTHIST25001"
 style = 3 
 date = { day = 1 month = may year = 1646 } 
 offset = 100 
 action_a = { #Fight the traitorous Cossacks!# 
  name = "ACTIONNAME25001A" 
  command = { type = province_revoltrisk which = 295 value = 20 } 
  command = { type = province_revoltrisk which = 1430 value = 20 } 
  command = { type = province_revoltrisk which = 294 value = 20 } 
  command = { type = province_revoltrisk which = 462 value = 20 } 
  command = { type = province_revoltrisk which = 461 value = 20 } 
  command = { type = province_revoltrisk which = 1394 value = 20 } 
  command = { type = province_revoltrisk which = 449 value = 20 } 
                command = { type = province_revoltrisk which = 459 value = 20 }
                command = { type = province_revoltrisk which = 1460 value = 20 }
                command = { type = province_revoltrisk which = 296 value = 20 }
                command = { type = province_revoltrisk which = 460 value = 20 }
command = { type = province_revoltrisk which = 465 value = 20 }
command = { type = province_revoltrisk which = 1435 value = 20 }
command = { type = province_revoltrisk which = 466 value = 20 }
command = { type = province_revoltrisk which = 464 value = 20 }
command = { type = province_revoltrisk which = 463 value = 20 }
command = { type = province_revoltrisk which = 994 value = 20 }
command = { type = province_revoltrisk which = 1401 value = 20 }
command = { type = province_revoltrisk which = 1462 value = 20 }
command = { type = province_revoltrisk which = 1461 value = 20 }
command = { type = province_revoltrisk which = 1982 value = 20 }
                command = { type = province_revoltrisk which = 1397 value = 12 } 
                command = { type = province_revoltrisk which = 994 value = 12 } 
                command = { type = province_revoltrisk which = 298 value = 12 } 
                command = { type = province_revoltrisk which = 297 value = 12 } 
                command = { type = province_revoltrisk which = 293 value = 12 } 
                 command = { type = province_revoltrisk which = 1428 value = 12 }
  command = { type = stability value = -4 } 
  command = { type = revoltrisk which = 60 value = 2 } 
  command = { type = revolt which = 293 } 
  command = { type = revolt which = 297 } 
  command = { type = revolt which = 298 } 
  command = { type = revolt which = 294 } 
  command = { type = revolt which = 295 } 
  command = { type = revolt which = 1428 } 
  command = { type = revolt which = 1430 } 
  command = { type = revolt which = 449 } 
  command = { type = revolt which = 462 } 
  command = { type = revolt which = 461 } 
  command = { type = revolt which = 1394 } 
  command = { type = revolt which = 459 } 
                command = { type = revolt which = 296 } 
                command = { type = revolt which = 994 } 
                command = { type = revolt which = 1460 } 
                command = { type = revolt which = 293 } 
  command = { type = revolt which = 297 } 
  command = { type = revolt which = 298 } 
  command = { type = revolt which = 294 } 
  command = { type = revolt which = 295 } 
  command = { type = revolt which = 1428 } 
  command = { type = revolt which = 1430 } 
  command = { type = revolt which = 449 } 
  command = { type = revolt which = 462 } 
  command = { type = revolt which = 461 } 
  command = { type = revolt which = 1394 } 
  command = { type = revolt which = 459 } 
                command = { type = revolt which = 296 } 
                command = { type = revolt which = 994 } 
                command = { type = revolt which = 1460 } 
                command = { type = revolt which = 293 } 
  command = { type = revolt which = 297 } 
  command = { type = revolt which = 298 } 
  command = { type = revolt which = 294 } 
  command = { type = revolt which = 295 } 
  command = { type = revolt which = 1428 } 
  command = { type = revolt which = 1430 } 
  command = { type = revolt which = 449 } 
  command = { type = revolt which = 462 } 
  command = { type = revolt which = 461 } 
  command = { type = revolt which = 1394 } 
  command = { type = revolt which = 459 } 
                command = { type = revolt which = 296 } 
                command = { type = revolt which = 994 } 
                command = { type = revolt which = 1460 }  
                command = { type = revolt which = 460 }  
command = { type = revolt which = 465 }  
command = { type = revolt which = 1435 }  
command = { type = revolt which = 466 }  
command = { type = revolt which = 464 } 
command = { type = revolt which = 460 }  
command = { type = revolt which = 465 }  
command = { type = revolt which = 1435 }  
command = { type = revolt which = 466 }  
command = { type = revolt which = 464 } 
command = { type = revolt which = 460 }  
command = { type = revolt which = 465 }  
command = { type = revolt which = 1435 }  
command = { type = revolt which = 466 }  
command = { type = revolt which = 464 }
command = { type = revolt which = 463 }  
command = { type = revolt which = 994 } 
command = { type = revolt which = 463 }  
command = { type = revolt which = 994 }
command = { type = revolt which = 463 }  
command = { type = revolt which = 994 }
command = { type = revolt which = 1401 }
command = { type = revolt which = 1401 }  
command = { type = revolt which = 1401 }
command = { type = revolt which = 1461 }
command = { type = revolt which = 1462 }  
command = { type = revolt which = 1397 }
command = { type = revolt which = 1461 }
command = { type = revolt which = 1462 }  
command = { type = revolt which = 1397 }
command = { type = revolt which = 1461 }
command = { type = revolt which = 1462 }  
command = { type = revolt which = 1397 }
command = { type = revolt which = 1982 }
command = { type = revolt which = 1982 }
command = { type = revolt which = 1982 }
  } 

 action_b = { #Let the Cossacks live in freedom# 
  name = "ACTIONNAME25001B" 
  command = { type = independence which = UKR } 
  command = { type = vassal which = UKR }
  command = { type = dynastic which = UKR }
  command = { type = alliance which = UKR }
  command = { type = relation which = UKR value = 200 }
  command = { type = secedeprovince which = UKR value = 461 } 
  command = { type = secedeprovince which = UKR value = 1461 } 
  command = { type = secedeprovince which = UKR value = 1394 } 
  command = { type = secedeprovince which = UKR value = 1462 } 
  command = { type = secedeprovince which = UKR value = 1430 } 
  command = { type = secedeprovince which = UKR value = 462 } 
                command = { type = secedeprovince which = UKR value = 294 } 
                command = { type = secedeprovince which = UKR value = 297 } 
                command = { type = secedeprovince which = UKR value = 295 } 
                command = { type = secedeprovince which = UKR value = 994 } 
command = { type = secedeprovince which = UKR value = 296 } 
command = { type = secedeprovince which = UKR value = 1460 } 
command = { type = secedeprovince which = UKR value = 459 } 
command = { type = secedeprovince which = UKR value = 466 }
command = { type = secedeprovince which = UKR value = 463 } 
command = { type = secedeprovince which = UKR value = 465 } 
command = { type = secedeprovince which = UKR value = 468 }
command = { type = secedeprovince which = UKR value = 1435 } 
command = { type = secedeprovince which = UKR value = 460 }
command = { type = secedeprovince which = UKR value = 464 }
command = { type = secedeprovince which = UKR value = 1982 }
  command = { type = domestic which = ARISTOCRACY value = -2 } 
                command = { type = domestic which = serfdom value = -2 }
  command = { type = sleepevent which = 25002 } #Sleeps the End of the revolts event 
  command = { type = stability value = 1 } 
  } 
} 

#End of the revolts# 
event = { 
 id = 25002 
 trigger = { event = 25001 #Khmelnytsky's revolt 
} 
 random = no 
 country = POL 
 name = "EVENTNAME25002" 
 desc = "EVENTHIST25002" 
 style = 3 

        date = { day = 1 month = january year = 1658 } 
 offset = 600 
 deathdate = { day = 1 month = january year = 1820 } 
 action_a = { #The revolt is over.# 
  name = "ACTIONNAME25002A" 
  command = { type = province_revoltrisk which = 462 value = -20 } 
  command = { type = province_revoltrisk which = 461 value = -20 } 
  command = { type = province_revoltrisk which = 296 value = -20 } 
  command = { type = province_revoltrisk which = 295 value = -20 } 
  command = { type = province_revoltrisk which = 1430 value = -20 } 
  command = { type = province_revoltrisk which = 294 value = -20 } 
command = { type = province_revoltrisk which = 1982 value = -20 }
                command = { type = province_revoltrisk which = 1394 value = -20 } 
  command = { type = province_revoltrisk which = 449 value = -20 } 
  command = { type = province_revoltrisk which = 459 value = -20 } 
  command = { type = province_revoltrisk which = 1460 value = -20 } 
command = { type = province_revoltrisk which = 1401 value = -20 } 
command = { type = province_revoltrisk which = 465 value = -20 }
command = { type = province_revoltrisk which = 1435 value = -20 }
command = { type = province_revoltrisk which = 466 value = -20 }
command = { type = province_revoltrisk which = 464 value = -20 }
command = { type = province_revoltrisk which = 463 value = -20 }
command = { type = province_revoltrisk which = 994 value = -20 }
command = { type = province_revoltrisk which = 1462 value = -20 }
command = { type = province_revoltrisk which = 1461 value = -20 }
                command = { type = province_revoltrisk which = 1397 value = -12 } 
  command = { type = province_revoltrisk which = 298 value = -12 } 
  command = { type = province_revoltrisk which = 297 value = -12 } 
  command = { type = province_revoltrisk which = 1428 value = -12 } 
  command = { type = province_revoltrisk which = 994 value = -12 }
  command = { type = province_revoltrisk which = 293 value = -12 }  
  } 
} 

#The Tatar alliance# 
event = { 
 id = 25003 
 trigger = { war = { country = UKR country = POL } 
  exists = CRI 
} 
 random = no 
 country = UKR 
 name = "EVENTNAME25003" 
 desc = "EVENTHIST25003"
 style = 3 
 date = { day = 1 month = january year = 1646 } 
 offset = 100 
 deathdate = { day = 1 month = january year = 1820 } 
 action_a = { #Put aside our old hatreds to fight the Poles.# 
  name = "ACTIONNAME25003A" 
  command = { type = CAV which = -1 value = 20000 } 
  command = { type = relation which = CRI value = 50 } 
  } 
 action_b = { #Do not seek help from the barbaric Tartars.# 
  name = "ACTIONNAME25003B" 
  command = { type = INF which = -1 value = 14000 } 
  command = { type = relation which = CRI value = -50 } 
  } 
} 

#The Periaslav Agreement# 
event = { 
 id = 25004 
 trigger = { event = 25001 #Khmelnitsky's revolt event. 
  exists = POL 
  exists = RUS 
  NOT = { 
   vassal = { country = POL country = UKR } 
   vassal = { country = RUS country = UKR } 
   vassal = { country = TUR country = UKR } 
  } 
} 
 random = no 
 country = UKR 
 name = "EVENTNAME25004" 
 desc = "EVENTHIST25004"
 style = 3 
 date = { day = 1 month = january year = 1646 } 
 offset = 3600 
 deathdate = { day = 1 month = january year = 1820 } 

 action_a = { #The Orthodox Tsar of Russia shall be our protector.# 
  name = "ACTIONNAME25004A" 
  command = { type = trigger which = 25005 } 
  command = { type = relation which = RUS value = 50 } 
  command = { type = relation which = POL value = -100 } 
  command = { type = relation which = TUR value = -25 } 
  } 
 action_b = { #Reconcile with the Polish King.# 
  name = "ACTIONNAME25004B" 
  command = { type = trigger which = 25006 } 
  command = { type = relation which = POL value = 50 } 
  command = { type = relation which = RUS value = -100 } 
  command = { type = relation which = TUR value = -25 } 
  } 
 action_c = { #Seek the aid of the Ottoman Sultan.# 
  name = "ACTIONNAME25004C" 
  command = { type = trigger which = 25007 } 
  command = { type = relation which = TUR value = 50 } 
  command = { type = relation which = RUS value = -100 } 
  command = { type = relation which = POL value = -100 } 
  } 
 action_d = { #None of the above.# 
  name = "ACTIONNAME25004D" 
  command = { type = stability value = -2 } 
  command = { type = relation which = TUR value = -25 } 
  command = { type = relation which = RUS value = -100 } 
  command = { type = relation which = POL value = -100 } 
  } 
} 

event = { 
 id = 25005 
 random = no 
 country = RUS 
 name = "EVENTNAME25005" 
 desc = "EVENTHIST25005"
 style = 3 
 action_a = { #Become overlord of the Cossacks.# 
  name = "ACTIONNAME25005A" 
  command = { type = vassal which = UKR } 
  command = { type = relation which = POL value = -200 } 
  } 
 action_b = { #Do not get involved with the troublesome Cossacks.# 
  name = "ACTIONNAME25005B" 
  command = { type = relation which = UKR value = -100 } 
  command = { type = trigger which = 25008 }
  } 
} 

event = { 
 id = 25006
 random = no 
 country = POL 
 name = "EVENTNAME25006" 
 desc = "EVENTHIST25006"
 style = 3 
 action_a = { #Accept the demands of the Cossacks.# 
  name = "ACTIONNAME25006A" 
  command = { type = inherit which = UKR } 
  command = { type = domestic which = aristocracy value = -3 } 
                command = { type = domestic which = serfdom value = -3 }
  command = { type = stability value = -3 } 
command = { type = revoltrisk which = 10 value = 36 }
  } 
 action_b = { #We will not bow to the demands of these rebels.# 
  name = "ACTIONNAME25006B" 
  command = { type = relation which = UKR value = -100 } 
  } 
} 

event = { 
 id = 25007 
 random = no 
 country = TUR 
 name = "EVENTNAME25005" 
 desc = "EVENTHIST25007"
 style = 3 
 action_a = { #Become overlord of the Cossacks.# 
  name = "ACTIONNAME25005A" 
  command = { type = vassal which = UKR } 
  command = { type = relation which = POL value = -200 } 
  } 
 action_b = { #Do not get involved with the troublesome Cossacks.# 
  name = "ACTIONNAME25005B" 
  command = { type = relation which = UKR value = -100 } 
  } 
}

event = { 
 id = 25008 
 trigger = { 
  event = 25005  
 } 
 random = no 
 country = RUS 
 name = "EVENTNAME25008" 
 desc = "EVENTHIST25008"
 date = { day = 1 month = january year = 1654 } 
 offset = 1200 
 deathdate = { day = 1 month = january year = 1764 } 
 style = 3 
 action_a = { #Accept Ukrainians.# 
  name = "ACTIONNAME24020A" 
  command = { type = relation which = POL value = -200 } 
  command = { type = relation which = UKR value = 200 } 
                command = { type = add_countryculture which = ruthenian }
 command = { type = addcore which = 449 }
 command = { type = addcore which = 461 }
 command = { type = addcore which = 1394 }
 command = { type = addcore which = 1430 }
 command = { type = addcore which = 1460 }
 command = { type = addcore which = 462 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 465 }
 command = { type = addcore which = 463 }
 command = { type = addcore which = 464 }
 command = { type = addcore which = 466 }
 command = { type = addcore which = 1435 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 1401 }
 command = { type = addcore which = 1461 }
 command = { type = addcore which = 1462 }
command = { type = addcore which = 468 }
  } 
} 

event = { 
 id = 25009 
 trigger = { 
  religion = orthodox
 } 
 random = no 
 country = RUS 
 name = "EVENTNAME25008" 
 desc = "EVENTHIST25008"
 date = { day = 1 month = january year = 1654 } 
 offset = 1200 
 deathdate = { day = 1 month = january year = 1764 } 
 style = 3 
 action_a = { #Accept Ukrainians.# 
  name = "ACTIONNAME24020A" 
  command = { type = relation which = POL value = -200 } 
                command = { type = add_countryculture which = ruthenian }
 command = { type = addcore which = 449 }
 command = { type = addcore which = 461 }
 command = { type = addcore which = 1394 }
 command = { type = addcore which = 1430 }
 command = { type = addcore which = 1460 }
 command = { type = addcore which = 462 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 465 }
 command = { type = addcore which = 463 }
 command = { type = addcore which = 464 }
 command = { type = addcore which = 466 }
 command = { type = addcore which = 1435 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 1401 }
 command = { type = addcore which = 1461 }
 command = { type = addcore which = 1462 }
command = { type = addcore which = 468 }
  } 
} 

event = { 
 id = 200197
 random = no 
 country = UKR 
 name = "Казаки сражаются за Украину" 
 desc = "Украинское  козачество на протяжении всего 17 века регулярно вставало на защиту Родины и праволсавной веры"
 date = { day = 1 month = january year = 1500 } 
 offset = 100 
 deathdate = { day = 1 month = january year = 1820 } 
 style = 3 
 action_a = { 
  name = "Казаки - наши защитники" 
 command = { type = add_countryculture which = inuit }
command = { type = infantry which = -2 value = 20000 }
		command = { type = cavalry which = -2 value = 10000 }
 command = { type = addcore which = 449 }
 command = { type = addcore which = 461 }
 command = { type = addcore which = 1394 }
 command = { type = addcore which = 1430 }
 command = { type = addcore which = 462 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 296 }
 command = { type = addcore which = 1401 }
 command = { type = addcore which = 1461 }
 command = { type = addcore which = 1462 }
command = { type = addcore which = 298 }
command = { type = addcore which = 1397 }
 command = { type = addcore which = 294 }
command = { type = addcore which = 297 }
command = { type = addcore which = 1419 }
 command = { type = addcore which = 994 }
command = { type = addcore which = 293 }
  } 
} 