#####Brandenburg Major Events#####
###By Joakim 'Greven' Bergqwist ##
###   Stefan Huszics            ##
###   Hеvard Moe                ##
###   Tom 'Demetrios' Rinschler ##
##################################

#The League of Schmalkalden#
event = {

	id = 3633
	trigger = {
		 exists = HAB  
		 	AND = { 
				OR = {
					religion = protestant
					religion = reformed
						}
			}
	}
	random = no
	country = BRA
	name = "EVENTNAME3633"
	desc = "EVENTHIST3633"
	style = 2

	date = { day = 1 month = january year = 1527 }
	offset = 30
	deathdate = { day = 1 month = january year = 1529 }

	action_a ={					#Give it your support#
		name = "ACTIONNAME3633A"
		command = { type = relation which = FRA value = 100 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = BAD value = 150 }
		command = { type = relation which = HAN value = 150 }
		command = { type = relation which = HES value = 150 }
		command = { type = relation which = PFA value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = THU value = 150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HAB value = -150 }
	}

	action_b ={					#Ignore it#
		name = "ACTIONNAME3633B"
		command = { type = relation which = BAD value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = THU value = -100 }
		command = { type = relation which = HAB value = 50 }
	}
}

#The Evangelic Union#
event = {

	id = 3634
	trigger = {
		 OR = {
			religion = protestant
			religion = reformed
				}
			}
	random = no
	country = BRA
	name = "EVENTNAME3634"
	desc = "EVENTHIST3634"
	style = 3

	date = { day = 1 month = january year = 1605 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }

	action_a ={					#Prepare to Join#
		name = "ACTIONNAME3634A"
		command = { type = relation which = FRA value = 100 }
		command = { type = relation which = BAD value = 150 }
		command = { type = relation which = HAN value = 150 }
		command = { type = relation which = HES value = 150 }
		command = { type = relation which = PFA value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = THU value = 150 }
		command = { type = relation which = SHL value = 150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HAB value = -150 }
	}

	action_b ={					#Stay Neutral#
		name = "ACTIONNAME3634B"
		command = { type = relation which = BAD value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = THU value = -100 }
		command = { type = relation which = HAB value = 50 }
	}
}

#The Catholic League#
event = {

	id = 3635
	trigger = {
		 OR = {
			religion = catholic
			religion = counterreform
				}
			}	
	random = no
	country = BRA
	name = "EVENTNAME3635"
	desc = "EVENTHIST3635"
	style = 3

	date = { day = 1 month = january year = 1607 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }


	action_a ={					#Prepare to Join#
		name = "ACTIONNAME3635A"
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = BAD value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = THU value = -150 }
		command = { type = relation which = SHL value = -150 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = HAB value = 150 }
command = { type = domestic which = innovative value = 1 }
	}

	action_b ={					#Stay Neutral#
		name = "ACTIONNAME3635B"
		command = { type = relation which = BAD value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = THU value = 50 }
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = HAB value = -100 }
	}
}

#The incorporation of Prussia into Brandenburg#
#Edited by St Leo #
event = {
	id = 3636				#Triggerd by PRU 3517#
	random = no
	country = BRA
	name = "EVENTNAME3636"
	desc = "EVENTHIST3636"
	style = 3

	action_a ={				#Keep Polish sovereignty#
		name = "ACTIONNAME3636A"
		command = { type = inherit which = U15 }
		command = { type = addcore which = 290 }
		command = { type = addcore which = 871 }
command = { type = addcore which = 1978 }
command = { type = addcore which = 301 }
		command = { type = relation which = POL value = -20 }
command = { type = treasury value = -200 }
	}
	
	action_b ={				#Defy Polish sovereignty#
		name = "ACTIONNAME3636B"
		command = { type = inherit which = U15 }
		command = { type = addcore which = 290 }
		command = { type = addcore which = 871 }
command = { type = addcore which = 1978 }
command = { type = addcore which = 301 }
		command = { type = relation which = POL value = -100 }
		command = { type = treasury value = 100 }
	}
}	
# Remember make triggered event for POL command = { type = casusbelli which = BRA value = 12}


#Reform of the Brandenburg Army#
event = {

	id = 3518
	random = no
	country = BRA
	name = "EVENTNAME3518"
	desc = "EVENTHIST3518"
	style = 3

	date = { day = 1 month = january year = 1640 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }

	action_a ={				#Offensive Army Reform#
		name = "ACTIONNAME3518A"

		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = QUALITY value = 1 }
command = { type = domestic which = ARISTOCRACY value = 3 }
command = { type = domestic which = serfdom value = 3 }
command = { type = domestic which = centralization value = 2 }
command = { type = land value = 3000 }
command = { type = provincemanpower which = 313 value = 1 } 
command = { type = provincemanpower which = 311 value = 1 } 
command = { type = provincemanpower which = 1941 value = 1 } 
command = { type = provincemanpower which = 312 value = 1 } 
command = { type = provincemanpower which = 302 value = 1 } 
command = { type = provincemanpower which = 304 value = 1 } 
command = { type = provincemanpower which = 305 value = 1 } 
command = { type = provincemanpower which = 301 value = 1 } 
command = { type = provincemanpower which = 871 value = 1 }
command = { type = provincemanpower which = 290 value = 1 } 
command = { type = provincemanpower which = 1978 value = 1 } 
command = { type = provincemanpower which = 1986 value = 1 }
command = { type = provincemanpower which = 1469 value = 1 }
command = { type = treasury value = -300 }
		command = { type = INF which = -1 value = 12000 }
		command = { type = CAV which = -3 value = 6000 }
	}

	action_b ={				#Defensive Army Reform#
		name = "ACTIONNAME3518B"
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = -2 }
		command = { type = domestic which = QUALITY value = 3 }
		command = { type = land value = 3000 }
		command = { type = fortress which = 1941 value = 1 }
		command = { type = fortress which = -1 value = 1 }
command = { type = fortress which = -1 value = 1 }
command = { type = fortress which = -1 value = 1 }
		
	}

	action_c ={				#Navy Reform#
		name = "ACTIONNAME3518C"
command = { type = treasury value = -200 }
		command = { type = domestic which = LAND value = -2 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = naval value = 2000 }
                command = { type = explorer which = -1 }
                command = { type = explorer which = -1 }
		command = { type = warships which = -1 value = 5 }
                command = { type = galleys which = -1 value = 20 }
		command = { type = transports which = -3 value = 4 }
	}

}

#Protestants expelled from France#
event = {

	id = 3521				#Triggered by FRA3128#
	random = no
	country = BRA
	name = "EVENTNAME3521"
	desc = "EVENTHIST3521"
	style = 3

	action_a ={				#Welcome with open arms#
		name = "ACTIONNAME3521A"
		command = { type = population which = -1 value = 5000 }
		command = { type = provincetax which = -3 value = 1 }
		command = { type = population which = -1 value = 3000 }
		command = { type = provincetax which = -3 value = 1 }
		command = { type = population which = -1 value = 5000 }
		command = { type = provincetax which = -3 value = 1 }
		command = { type = population which = -1 value = 3000 }
		command = { type = provincetax which = -3 value = 1 }
		command = { type = stability value = 1 }
	}
}

#The League of Augsburg#
event = {

	id = 3522				#triggered by FRA3127#
	random = no
	country = BRA
	name = "EVENTNAME3522"
	desc = "EVENTHIST3522"
	style = 3

	action_a ={				#Defy French claims#
		name = "ACTIONNAME3522A"
		command = { type = casusbelli which = FRA value = 72 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = BAD value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = THU value = 100 }
	}

	action_b ={				#Ignore it#
		name = "ACTIONNAME3522B"
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = HAN value = -50 }
		command = { type = relation which = BAD value = -50 }
		command = { type = relation which = HES value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = PFA value = -50 }
		command = { type = relation which = THU value = -50 }
	}
}

#The Brandenburg African Trade Company#

event = {

	id = 3523
	random = no
	country = BRA
	name = "EVENTNAME3523"
	desc = "EVENTHIST3523"
	style = 3

	date = { day = 1 month = january year = 1682 }
	offset = 30
	deathdate = { day = 1 month = january year = 1683 }

	action_a ={				#We will exploit this!#
		name = "ACTIONNAME3523A"
		command = { type = gainmanufactory which = -1 value = goods }
		command = { type = merchants value = 5 }
		command = { type = explorer which = -1 }
		command = { type = trade value = 400 }
	}
}



## The Kleve Inheritance ##
event = {
    id = 3855
    
    # Triggered by KLE 3854
    
    random = no
    country = BRA
    name = "EVENTNAME3855"
    desc = "EVENTHIST3855"
    style = 3

    action_a ={        #Inherit Kleves#
        name = "ACTIONNAME3855A"
        command = { type = inherit which = KLE }
        command = { type = addcore which = 343 }
        command = { type = trigger which = 3859 }
    }
}

event = {
	id = 3856
	
	# Triggered by PFA 3858
	
	random = no
	country = BRA
	name = "EVENTNAME3856"
	desc = "EVENTHIST3856"
	style = 3

	action_a ={		#No inheritance of Kleves#
		name = "ACTIONNAME3856A"
		command = { type = casusbelli which = PFA value = 60 }
		command = { type = relation which = PFA value = -100 }
	}
}

event = {
	id = 3857
	
	# Triggered by KLE 3854
	
	random = no
	country = BRA
	name = "EVENTNAME3856" # Re-use text.
	desc = "EVENTHIST3856"
	style = 3

	action_a ={		#No inheritance of Kleves#
		name = "ACTIONNAME3856A"
		command = { type = casusbelli which = KLE value = 60 }
		command = { type = relation which = KLE value = -50 }
	}
}

## The Pommern Inheritence ##
event = {
    id = 3896
       
    # Triggered by POM 3895
    
    random = no
    country = BRA
    name = "EVENTNAME3896"
    desc = "EVENTHIST3896"
    style = 3

    action_a ={        #Inherit Pommern#
        name = "ACTIONNAME3896A"
        command = { type = inherit which = POM }
        command = { type = addcore which = 302 }
        command = { type = addcore which = 304 }
        command = { type = relation which = SWE value = -100 }
        
    }
}



################################
## Prussia and TO event chain
## by Neuromancer apgreited from AGCEEP
################################
# Ids used: 132080-132082

# Poland claims Ducal Prussia
event = {

	id = 132080			#Triggered by POL258231B #
	random = no
	country = BRA
	name = "Poland claims Hohenzollern Prussia"
	desc = "In 1525 during the religious turmoil of the Reformation one of the early converters to the new religion was the Teutonic Orders' Grandmaster from Brandenburg, Albrecht of Hohenzollern. Inspired by Luther he also decides to secularize the land areas under his control, Prussia, into a protestant duchy. However, knowing that this would earn him the eternal enmity of his former Order he had to go for help with its greatest enemy, Poland-Lithuania. However Poland-Lithuania decided to claim his lands instead. Shall we help our family member?"
	style = 2

	action_a ={		
		name = "Help Albert!"
		command = { type = vassal which = U15 }
		command = { type = alliance which = U15 }
		command = { type = relation which = LIV value = -50 }
		command = { type = relation which = U15 value = 300 }
		command = { type = relation which = POL value = -200 }
		command = { type = treasury value = 250 }  # Help from other german states
		command = { type = INF which = -2 value = 5000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = setflag which = ClaimOnPrussia }
		command = { type = casusbelli which = POL value = 240 }
	}

	action_b ={			
		name = "We can't help them now"
		command = { type = casusbelli which = POL value = 240 }
		command = { type = relation which = LIV value = 100 }
		command = { type = relation which = U15 value = -50 }
		command = { type = relation which = POL value = 100 }

	}
}

# Fall of the Duchy of Prussia
# Fires when there is no Prussia, either if it was taken by Poland or not
event = {

	id = 132081
	trigger = {
		NOT = { exists = U15 }
		event = 263020 # PRU263020: Hohenzollern Prussia become Polish Duchy

	}	
	random = no
	country = BRA
	name = "The fall of Duchy of Prussia"
	desc = "After the secularization of the Teutonic Order's lands, Albert Hohenzollern became the Duke of Prussia. However the Duchy was weak and it's existance depended on the Polish and Brandenburgian help."
	style = 2

	date = { day = 1 month = january year = 1524 }
	offset = 60
	deathdate = { day = 1 month = january year = 1620 }

	action_a ={		
		name = "Grab the title"
		command = { type = addcore which = 1978 }
		command = { type = addcore which = 290 } # Prussia
		command = { type = addcore which = 871 }
command = { type = addcore which = 301 }
		command = { type = relation which = LIV value = -50 }
		command = { type = relation which = POL value = -200 }
		command = { type = treasury value = -100 }  # Help from other german states
		command = { type = setflag which = ClaimOnPrussia }
		command = { type = cash value = -400 } 
		command = { type = desertion which = -1 value = 10000 } 
	}

}

# Death of Albert Friedrich
# Poland inherits version - modified by YodaMaster
event = {
	id = 132082
	trigger = {
		exists = U15
		event = 263020 # PRU263020: Hohenzollern Prussia become Polish Duchy
	}
	
	random = no
	country = BRA
	name = "Death of Albert Friedrich"
	desc = "After years of illness the last Duke of Prussia from the Hohenzollern-Ansbach, Albert Friedrich, died. According to the Treaty of Cracov from 1525, after the Prussian branch of the Hohenzollern family, the lands of the Duchy of Prussia were to be incorporated into Poland. However this was changed with the decision of the Polish Seym on the 5th of may 1611. The Hohenzollern-Brandenburg branch was therefore allowed to inherit the Duchy."
	style = 2
	
	date = { day = 1 month = february year = 1618 } # Albert Friedrich dies
	
	action_a ={			
		name = "Finally!"
		command = { type = inherit which = U15 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = HAB value = -25 }
		command = { type = relation which = LIV value = -50 }
		command = { type = addcore which = 1978 } 
		command = { type = addcore which = 290 } # Prussia
		command = { type = addcore which = 871 }
command = { type = addcore which = 301 }
		command = { type = provinceculture which = 290 value = german }
command = { type = provinceculture which = 1978 value = german }
		command = { type = treasury value = -50 }
		command = { type = stability value = 1 }
		command = { type = setflag which = ClaimOnPrussia }
		command = { type = sleepevent which = 132081 }
	}	
} 

#########
### standart event apgreited from AGCEEP
#########
#The Kingdom of Prussia#
#changed by Neuro - modified by YodaMaster and SirCentipede
event = {
	id = 3524
	trigger = {
		OR = { 
			owned = { province = 290 data = -1 }
			flag = ClaimOnPrussia
		}
	}
	random = no
	country = BRA
	name = "EVENTNAME3524"
	desc = "EVENTHIST3524"
	style = 4
	date = { day = 1 month = january year = 1701 }
	offset = 30
	deathdate = { day = 1 month = january year = 1760 }

	action_a ={
		name = "ACTIONNAME3524A" #The Kingdom of Prussia is born!#
                command = { type = desertion which = -1 value = 8000 }
 		command = { type = treasury value = 100 }
		command = { type = treasury value = 200 }
		command = { type = relation which = HAB value = -40 }
		command = { type = diplomats value = 3 }
		command = { type = country which = PRU }
		command = { type = provinceculture which = 1978 value = german }
command = { type = provinceculture which = 290 value = german }
	}
	action_b ={
		name = "ACTIONNAME3524B" #Stay Elector-Prince!#
		command = { type = stability value = 2 }
		command = { type = relation which = HAB value = 40 }
		command = { type = removecore which = 1978 } #Memel
		command = { type = removecore which = 290 } #Prussia
		command = { type = removecore which = 871 }
command = { type = removecore which = 301 }
	}
}

#Acquisition of Neumark
event = {
      id = 132101
      random = no
      country = BRA
      name = "Приобретение Неймара"
      desc = "Неймарк, первоначально часть Бранденбурга к востоку от Ордена, была заложена Тевтонским Орденом в 1402 году. В отчаянной финансовой, политической и военной ситуаций, вызванной восстанием пруссаков и вмешательства Казимира польского, Орден решил, что будет лучше продать Неймарк обратно Бранденбургу и заработать немного денег, это будет лучше, чем просто отдать эту территорию полякам. Таким образом 22 февраля представители Ордена предложили территорию Фридриху II за 40000 гульденов. Фридриху II принял их предложение с удовольствием и 5 апреля, территория Неймар вошла в состав Бранденбурга. После половины столетия раздела, вновь было восстановлено единство трёх земель, составляющие Бранденбург."
      style = 1
       
      action_a = {
                name = "Купить Неймар"
                command = { type = treasury value = -80 }
                command = { type = relation which = LAT value = 50 }
                command = { type = relation which = POL value = -50 }
		command = { type = addcore which = 313 }
                command = { type = trigger which = 209001 } #LAT: Brandenburg accepts
                  }
      action_b = {
                name = "Мы не можем позволить себе этого"
                command = { type = relation which = LAT value = -50 }
                command = { type = vp value = -10 }
                  }
}

#The Hussite Wars
event = {
         id = 132600
         trigger = { event = 129001 } #BOH: Death of Vaclav IV
         random = no
         country = BRA
         name = "Гуситские войны" 
         desc = "Уничтожим еретиков!"
         style = 1
         
         date = { day = 17 month = august year = 1419 }        
         offset = 1
         
         action_a = {
                      name = "Ok"
                      command = { type = casusbelli which = SIL value = 120 }
                        }
}

#Catholicism restored in Bohemia
event = {
      id = 132601
      trigger = { 
              OR = { religion = reformed
                     religion = protestant }
                  NOT = { exists = SIL }
                }
      random = no
      country = BRA
      name = "Гуситская ересь остановлена"
      desc = "Наконец то королевство Богемия обратно вернулось в лоно католической церкви. Как следствие, немецкие принцы, которые были вынуждены отвернутся от церкви во время гуситских войн, теперь могут благополучно вернутся к римской церкви, Папа Римский обещает быть снисходительным и простит неверующих."
      style = 1
      
      date = { day = 17 month = august year = 1419 }
      offset = 0
      deathdate = { day = 31 month = december year = 1480 }

      action_a = {
               name = "Восстановить католицизм"
               command = { type = religion which = catholic }
               command = { type = stability value = 3 }
                 }
}

#The Cleves succession
event = { 
      id = 132201
      random = no
      country = BRA
      name = "The Cleves succession"
      desc = "EVENTHIST132201"
      style = 3
      
      action_a = {
               name = "Great"
               command = { type = vassal which = KLE }
               command = { type = relation which = KLE value = 200 }
               command = { type = alliance which = KLE }
                 }
}

#Inheritance of Cleves
event = {
      id = 132203
      random = no 
      country = BRA
      name = "Inheritance of Cleves"
      desc = "Duke Johann Wilhelm of Jьlich, Cleves and Berg died on March 25th 1609, 
in a state of complete insanity and without a child or brother. While in the United Duchies 
a woman could not succeed to the throne herself, succession through a female relative 
was possible; hence the husbands of Johann Wilhelm's sisters claimed the inheritance. 
Duke Albrecht Friedrich of Prussia, married to the oldest sister Marie-Eleonore, 
had no male heir himself and ceded his claim to the husband of his daughter Anna, Elector 
Johann Sigismund of Brandenburg. Our legitimate claim eventually prevailed and we 
are now in possession of the whole United Duchies."
      style = 3
       
      action_a = {
               name = "Great"
               command = { type = addcore which = 1404 }
               command = { type = addcore which = 343 }
               command = { type = inherit which = KLE }
                 }
}


#(1422) Inheritance of Saxony
event = {
	id = 132000 #triggered by SAC_273000 B
	random = no
	country = BRA
	name = "Brandenburg inherits Electoral Saxony" 
	desc = "The influence of the Askanians who had once been the most powerful dynasty in Eastern Germany slowly faded in the 14th and 15th century. First in Brandenburg, then in Lauenburg and finally 1423 in electoral Saxony the branches got extinct, and the remaining members of the family lacked unity and determination to secure the territories. Instead, the Hohenzollern and Wettins were given the old Askanian lands and took their former rank. The last step in this process was the extinction of the electoral branch in Saxony-Wittenberg with the heirless death of Albrecht III. This caused a tough contest between the Hohenzoller Elector Friedrich of Brandenburg and the Wettin Margrave Friedrich IV of Meissen for Albrecht's possessions. Emperor Sigismund has decided in our favour and granted the Electorate and Saxony-Wittenberg to us. This gives us a position of hegemony in Eastern Germany and in the electoral college."
	#-#

	action_a = {
		name = "GREAT"
		command = { type = addcore which = 1942 } #Anhalt
		command = { type = inherit which = SAC }
		command = { type = relation which = U16 value = -100 }
		command = { type = relation which = HUN value = 50 }
		command = { type = vp value = 50 }
		command = { type = diplomats value = 4 }
	}
}

