########################
##Anglo-Welsh Events  ##
## Created by Pishtaco##
########################

#The Marcher Lords#
event = {

        id = 20800
        trigger = { atwar = no }
	random = no
	country = WLS
        name = "EVENTNAME20800"
        desc = "EVENTHIST20800"

	style = 1

        date = { day = 1 month = january year = 1473 }
        offset = 30
        deathdate = { day = 30 month = december year = 1543 } 

	action_a ={
        	name = "ACTIONNAME20800A"
	        command = { type = domestic which = centralization value = -2 }
        	command = { type = domestic which = aristocracy value = 1 } 
        	command = { type = relation which = ENG value = 50 }
	}

	action_b ={
	        name = "ACTIONNAME20800B"
        	command = { type = domestic which = centralization value = 2 }
	        command = { type = domestic which = serfdom value = -2 }
        	command = { type = domestic which = innovative value = -1 }
	        command = { type = domestic which = aristocracy value = -2 }
        	command = { type = provincetax which = 243 value = 1 } #Wales
		command = { type = revolt which = 243 } #Wales
		command = { type = revoltrisk which = 120 value = 6 } #Ten years
        	command = { type = stability value = -5 }
	        command = { type = relation which = ENG value = -100 }
        	command = { type = treasury value = -50 }
	}
}

#The Red Dragon#
event = {
        id = 20801
        trigger = {
                exists = ENG
                }
        random = no
        country = WLS
        name = "EVENTNAME20801"
        desc = "EVENTHIST20801"
        style = 1

	date = { day = 7 month = august year = 1485 }
	offset = 0
	deathdate = { day = 8 month = august year = 1485 }


	action_a ={
        	name = "ACTIONNAME20801A"
	        command = { type = treasury value = 100 }
		command = { type = domestic which = centralization value = -1 }
	        command = { type = stability value = 1 }
        	command = { type = sleepevent which = 20802 } #Boar of Cornwall
        }

	action_b ={
        	name = "ACTIONNAME20801B"
	        command = { type = relation which = ENG value = -100 }
        	command = { type = stability value = -3 }
	        command = { type = domestic which = aristocracy value = -2 }
        	command = { type = desertion which = 243 value = 2000 } #Wales
	        command = { type = desertion which = -1 value = 2000 } #random
        	command = { type = sleepevent which = 20802 } #Boar of Cornwall
		command = { type = sleepevent which = 20806 } #Reconciliation with the Welsh
	}

	action_c = {
        	name = "ACTIONNAME20801C"
	        command = { type = relation which = ENG value = -300 }
        	command = { type = stability value = -5 }
	        command = { type = treasury value = -200 }
        	command = { type = domestic which = serfdom value = 1 }
	        command = { type = domestic which = innovative value = -2 }
        	command = { type = domestic which = aristocracy value = 2 }
        	command = { type = domestic which = quality value = 1 }
	        command = { type = domestic which = land value = 2 }
        	command = { type = wakeleader which = 19974 } #Maredudd I
	        command = { type = casusbelli which = ENG value = 284 } #until April 1509, accession of Henry VIII#
		command = { type = sleepevent which = 20806 } #Reconciliation with the Welsh
        }
}

#The Boar of Cornwall#
event = {

        id = 20802
        trigger = {
                event = 20801  # The Red Dragon#
		flag = ENG_Rebellion_in_Cornwall
                }
        random = no
        country = WLS
        name = "EVENTNAME20802"
        desc = "EVENTHIST20802"
        style = 1

        date = { day = 1 month = june year = 1549 }
        offset = 10
        deathdate = { day = 30 month = december year = 1550 }

	action_a ={
        	name = "ACTIONNAME20802A"
	        command = { type = stability value = 1 }
        }

	action_b ={
        	name = "ACTIONNAME20802B"
        	command = { type = addcore which = 250 } #Cornwall
		command = { type = treasury value = -100 }
	       	command = { type = domestic which = innovative value = -2 }
	        command = { type = domestic which = centralization value = -2 }
        	command = { type = domestic which = aristocracy value = 1 }
	        command = { type = relation which = ENG value = -300 }
        	command = { type = relation which = SCO value = -100 }
	        command = { type = relation which = FRA value = -50 }
        	command = { type = stability value = -5 }
		command = { type = population which = 246 value = -3000 } #Bristol
        	command = { type = population which = 244 value = -3000 } #Midlands
	        command = { type = population which = 242 value = -3000 } #Lancashire
	        command = { type = revoltrisk which = 60 value = 5 } #5 years revoltrisk
        }
}

#The Fall of the Dinefwrs#
event = {

        id = 20803
        trigger = {
                domestic = {
			type = aristocracy
			value = 2
			}
                }
        random = no
        country = WLS
        name = "EVENTNAME20803"
        desc = "EVENTHIST20803"
        style = 2

        date = { day = 1 month = november year = 1531 }
        offset = 10
        deathdate = { day = 30 month = december year = 1599 }

	action_a ={
        	name = "ACTIONNAME20803A"
	        command = { type = stability value = -4 }
        	command = { type = domestic which = aristocracy value = -2 }
	        command = { type = domestic which = centralization value = 1 }
		command = { type = infra value = -1000 }
        }

	action_b ={
        	name = "ACTIONNAME20803B"
	        command = { type = stability value = -2 }
	        command = { type = domestic which = centralization value = -2 }
        	command = { type = revolt which = -2 } #A random province? (Havard says -1)
	        command = { type = relation which = -1 value = -100 } #A random neighbour?#
        	command = { type = relation which = -1 value = -100 }
        }
}

#The Voyage of Prince Madog#
event = {

        id = 20804
        random = no
        country = WLS
        name = "EVENTNAME20804"
        desc = "EVENTHIST20804"
        style = 2

        date = { day = 1 month = january year = 1582 }
        offset = 300
        deathdate = { day = 31 month = december year = 1582 }

	action_a ={
        	name = "ACTIONNAME20804A"
	        command = { type = domestic which = land value = 1 }
        	command = { type = infra value = 400 }
	        command = { type = land value = 400 }
        }

	action_b ={
        	name = "ACTIONNAME20804B"
		command = { type = treasury value = -100 }
	        command = { type = domestic which = land value = -4 }
        	command = { type = domestic which = mercantilism value = 2 }
	        command = { type = domestic which = innovative value = -1 }
        	command = { type = naval value = 600 }
	        command = { type = trade value = 600 }
        	command = { type = explorer which = -2 }
	        command = { type = colonists value = 3 }
	        command = { type = relation which = SPA value = -100 }
        	command = { type = relation which = ENG value = -100 }
	        command = { type = relation which = FRA value = -100 }
        }
}

#The Bread of Heaven#
event = {

        id = 20805
        random = no
        country = WLS
        name = "EVENTNAME20805"
        desc = "EVENTHIST20805"
        style = 4

        date = { day = 1 month = january year = 1745 }
        offset = 300
        deathdate = { day = 31 month = december year = 1750 }

	action_a ={
	        name = "ACTIONNAME20805A"
	        command = { type = stability value = -1 }
        	command = { type = domestic which = aristocracy value = -1 }
	        command = { type = missionaries value = 2 }     
        	command = { type = provincereligion which = 243 value = reformed } #Wales
	        command = { type = provincereligion which = 250 value = reformed } #Cornwall
        }
}

#Reconciliation with the Welsh#
event = {

        id = 20806
	trigger = {
		event = 20801
		event = 21112 #Bosworth Field	
		exists = WLS
		}
        random = no
        country = ENG
        name = "EVENTNAME20806"
        desc = "EVENTHIST20806"
        style = 1

	date = { day = 1 month = august year = 1485 }
	offset = 1
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
	        name = "ACTIONNAME20806A"
		command = { type = relation which = WLS value = 200 }
	        command = { type = vassal which = WLS }
	        command = { type = dynastic which = WLS }
		command = { type = alliance which = WLS } #Does this work?
	}
}