##############################
##     County of Artois     ##
##############################

event = {
	id = 773100
	random = no
	country = JUT
	name = "The Succession of Artois and Franche-Comté"
	desc = "Philip fell sick with the plague and died in 1361 at age 15, before he could consummate his marriage to his second cousin Margaret. With his death, the descent of his grandparents from both sides also became extinct. There being no one heir to the entirety of his possessions, they were divided up once more amongst the families from which they had descended to Philip."
	style = 1

	action_a = {
		name = "Excellent!"
		command = { type = stability value = 1 }
		command = { type = addcore  which = 379 }
		command = { type = addcore  which = 387 }
		command = { type = dynastic which = FLA }
		command = { type = dynastic which = FRA }
		command = { type = dynastic which = BUR }
		command = { type = trigger  which = 773003 }
	}
}

event = {
	id = 773101
	trigger = {
	        event = 773009
	        OR = {
                   AND = {
                       exists = FLA
                       exists = NRM
                       }
                   AND = {
                       exists = FLA
                       NOT = { exists = NRM }
                       }
                   }
	        NOT = {
                    event = 773104
                }
	}
	random = no
	country = JUT
	name = "The Succession of Artois and Franche-Comté"
	desc = "Countess Margaret died in 1382. Her counties of Artois and Burgundy were inherited by her only son Louis, Count of Flanders."
	style = 1

	date = { day = 9 month = may year = 1382 }

	action_a ={
		name = "Great Louis shall inherit"
		command = { type = trigger which = 773099 }  # FLA : The Succession of Artois and Franche-Comté
	}
	action_b ={
		name = "Rule from Arras"
		command = { type = addcore which = 380 }
		command = { type = addcore which = 386 }
		command = { type = inherit which = FLA }
		command = { type = vp   value = 15 }
		command = { type = setflag   which = Arras }
	}

}

event = {
	id = 773104
	trigger = {
	        event = 773009
	        exists = NRM
	        NOT = { 
                    exists = FLA
                    event = 773101
                }
	}
	random = no
	country = JUT
	name = "The Succession of Artois and Franche-Comté"
	desc = "Countess Margaret died in 1382. Her counties of Artois and Burgundy were inherited by her only son Louis, Count of Flanders."
	style = 1

	date = { day = 9 month = may year = 1382 }

	action_a ={
		name = "Great Louis shall inherit"
		command = { type = trigger which = 773010 }  # NRM : The Succession of Artois and Franche-Comté
	}
	action_b ={
		name = "Rule from Arras"
		command = { type = addcore which = 380 }
		command = { type = addcore which = 386 }
		command = { type = inherit which = NRM }
		command = { type = vp   value = 15 }
		command = { type = setflag   which = Arras }
	}

}

event = {
	id = 773102
	trigger = {
			exists = BUR
	}
	random = no
	country = JUT
	name = "The Wedding of Margaret of Dampierre"
	desc = "In 1363 Philip the Bold, King John II of France's youngest son, was granted the duchy as Philip II, and subsequently married its former duchess in 1369."
	style = 1

	date = { day = 19 month = june year = 1369 }

	action_a ={
		name = "For now on our lands will be united"
		command = { type = dynastic which = BUR }
		command = { type = relation which = BUR value = 50 }
		command = { type = relation which = FRA value = -25 }
		command = { type = stability value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = trigger  which = 773079 }
	}

	action_b ={
		name = "Do not marry (France will inherit)"
		command = { type = relation which = BUR value = -100 }
		command = { type = relation which = FRA value = 50 }
		command = { type = stability value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = setflag   which = Margaret_France }
	}
}

event = {
	id = 773076
	trigger = {
	        OR = {
	           event = 773101
	           event = 773104
	           }
	        event = 773079   
                flag = Arras
                NOT = {
                    event = 773010 #NRM
                    event = 773104 #JUT
                    event = 773000 #FLA
                    event = 773075 #NRM
                    event = 773009
                    flag = Margaret_France
                    }
        }
	random = no
	country = JUT
	name = "The Inheritance of Louis of Male"
	desc = "When Margaret of Dampierre's father, Louis of Male, died in 1384, she and Philip II the Bold inherited the counties of Artois, Franche-Comté, Flanders and Nevers."
	style = 1

	date = { day = 30 month = january year = 1384 }

	action_a ={
		name = "Good"
		command = { type = trigger which = 773074 }  # BUR : The Succession of Flandern
	}
	action_b ={
		name = "Elect a merchant"
		command = { type = relation which = BUR value = -100 }
		command = { type = stability value = -1 }
	}

}

event = {
	id = 773103
	trigger = {
			exists = FRA
			flag = Arras
			flag = Margaret_France
	}
	random = no
	country = JUT
	name = "The Inheritance of Margaret of Dampierre"
	desc = "When Margaret of Dampierre's father, Louis of Male, died in 1384, she inherited the counties of Artois, Franche-Comté, Flanders, Nevers, and Rethel. Now that she has passed on she has willed her counties to the Kingdom of France."
	style = 1

	date = { day = 21 month = march year = 1405 }

	action_a ={
		name = "Respect the will (Game Over)"
		command = { type = trigger  which = 771030 }
	}

	action_b ={
		name = "Disrespect the will"
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = BUR value = 50 }
		command = { type = stability value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}

#The Crown of France#
event = {

	id = 773105
	trigger = {
			owned = {
					province = 385
					data = -1
				}
			NOT = {
				exists = FRA
				}
		}
	random = no
	country = JUT
	name = "EVENTNAME3589"
	desc = "EVENTHIST3589"
	style = 1

	date = { day = 1 month = january year = 1420 }
	offset = 30
	deathdate = { day = 1 month = january year = 1515 }

	action_a ={					#France is reborn with me#
		name = "ACTIONNAME3589A"
		command = { type = vp value = 200 }
		command = { type = stability value = 3 }
		command = { type = country which = FRA }
		command = { type = INF which = 385 value = 15000 }
		command = { type = CAV which = 385 value = 10000 }
		command = { type = ART which = 385 value = 30 }
		command = { type = capital which = 385 }
		command = { type = addcore which = 192 }
		command = { type = addcore which = 374 }
		command = { type = addcore which = 375 }
		command = { type = addcore which = 376 }
		command = { type = addcore which = 379 }
		command = { type = addcore which = 383 }
		command = { type = addcore which = 384 }
		command = { type = addcore which = 385 }
		command = { type = addcore which = 386 }
		command = { type = addcore which = 387 }
		command = { type = addcore which = 405 }
		command = { type = addcore which = 406 }
		command = { type = addcore which = 407 }
		command = { type = addcore which = 408 }
		command = { type = addcore which = 409 }
		command = { type = addcore which = 410 }
		command = { type = addcore which = 411 }
		command = { type = addcore which = 412 }
		command = { type = addcore which = 413 }
		command = { type = addcore which = 414 }
		command = { type = addcore which = 415 }
		command = { type = addcore which = 416 }
		command = { type = addcore which = 417 }
		command = { type = addcore which = 418 }
		command = { type = addcore which = 419 }
		command = { type = addcore which = 420 }
		command = { type = addcore which = 421 }
		command = { type = addcore which = 422 }
		command = { type = addcore which = 423 }
		command = { type = addcore which = 424 }
		command = { type = addcore which = 425 }
		command = { type = addcore which = 426 }
		command = { type = addcore which = 877 }
	}

	action_b ={					#Let France rest in peace#
		name = "ACTIONNAME3589B"
		command = { type = vp value = -100 }
		command = { type = stability value = -3 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = BUR value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = SPA value = 150 }
	}
}

# IDs free to 773199