###################################################
#First we need to determine every Hanseatic State.#
###################################################

event = {

	id = 878642000
	random = no
	country = MEC
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642001
	random = no
	country = KOL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642002
	random = no
	country = SHL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642003
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = BRE
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642004
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = BRE
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642005
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = HAN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642006
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = HAN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642007
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = POM
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642008
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = POM
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642009
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = HAN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642010
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = HAN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642011
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = BRA
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642012
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = BRA
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642013
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MAG
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642014
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MAG
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642015
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = PFA
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642016
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = PFA
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642017
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MAI
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642018
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MAI
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642019
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = SIL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642020
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = SIL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642021
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MUN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642022
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = MUN
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642023
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = FRI
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642024
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = FRI
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642025
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = GEL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642026
			trigger = {
	          NOT = { flag = Hanseatic-League } #Need to be not in the Hanseatic League
                   }
	random = yes
	country = GEL
	name = "HANSEATICEVENTNAME1"
	desc = "HANSEATICEVENTDESC1"
	style = 1

	date = { day = 1 month = january year = 1356 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION1A"
		command = { type = setflag which = Hanseatic-League }
		command = { type = ai which = "Hanseatic_League.ai" }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION1B"
		command = { type = relation   which = MEC value = -100 }
	}
}


###################################################
#Then we need to determine every Hanseatic Kontor.#
###################################################

event = {

	id = 878642200
	random = no
	country = DAN
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642201
	random = no
	country = SWE
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642202
	random = no
	country = ENG
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642203
	random = no
	country = NVG
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642204
	random = no
	country = FLA
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642205
	random = no
	country = NOR
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642206
	random = no
	country = LAT
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642207
	random = no
	country = LIV
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

event = {

	id = 878642208
	random = no
	country = FAT
	name = "HANSEATICEVENTNAME2"
	desc = "HANSEATICEVENTDESC2"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 24 month = september year = 1500 }

	action_a ={
		name = "HANSEATICEVENTOPTION2A"
		command = { type = ADM   which = 1 value = 12 } 
		command = { type = trade   value = -100 }
		command = { type = setflag which = Hanseatic-Kontor }
		command = { type = gainbuilding   which = -1 value = bailiff }
	}
	action_b ={
		name = "HANSEATICEVENTOPTION2B"
		command = { type = relation   which = MEC value = -100 }
	}
}

###################################################################
#Then we need to make the abolish events that happened historical.#
###################################################################

event = {

	id = 878642050
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = no
	country = MEC
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "trader.ai" }
	}
}

event = {

	id = 878642051
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642052
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642053
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642054
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642055
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642056
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642057
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642058
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642059
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642060
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642061
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642062
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642063
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642064
		trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTNAME3"
	desc = "HANSEATICEVENTDESC3"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION3A"
		command = { type = clrflag which = Hanseatic-League }
		command = { type = ai which = "peaceful.ai" }
	}
}

event = {

	id = 878642065
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = no
	country = ENG
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1598 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor } 
		command = { type = losebuilding   which = -1 value = bailiff } 
		command = { type = trade   value = 200 }
		command = { type = relation   which = MEC value = -200 }
	}
	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = trade   value = -100 }
		command = { type = relation   which = MEC value = 100 }
	}
}

event = {

	id = 878642066
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = no
	country = SWE
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1500 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
		command = { type = trade   value = 200 }
		command = { type = relation   which = MEC value = -200 }
	}
	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = trade   value = -100 }
		command = { type = relation   which = MEC value = 100 }
	}
}

event = {

	id = 878642067
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = no
	country = DAN
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1500 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
		command = { type = trade   value = 200 }
		command = { type = relation   which = MEC value = -200 }
	}
	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = trade   value = -100 }
		command = { type = relation   which = MEC value = 100 }
	}
}

event = {

	id = 878642068
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = no
	country = NOR
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1500 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
		command = { type = trade   value = 200 }
		command = { type = relation   which = MEC value = -200 }
	}
	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = trade   value = -100 }
		command = { type = relation   which = MEC value = 100 }
	}
}

event = {

	id = 878642069
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642070
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642071
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642072
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642073
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642074
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}

event = {

	id = 878642075
		trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTNAME4"
	desc = "HANSEATICEVENTDESC4"
	style = 1

	date = { day = 24 month = september year = 1669 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "HANSEATICEVENTOPTION4A"
		command = { type = clrflag which = Hanseatic-Kontor }
		command = { type = losebuilding   which = -1 value = bailiff }
	}
}




#########################################
#Then we need to make the random events.#
#########################################

event = {
	id = 878642300
	trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTSNAME5"
	desc = "HANSEATICEVENTSDESC5"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION5A"
			command = { type = trade   value = -200 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION5B"
			command = { type = clrflag which = Hanseatic-Kontor }
			command = { type = losebuilding   which = -1 value = bailiff }
			command = { type = relation which = MEC value = -200 }
		}
	}
	
event = {
	id = 878642301
	trigger = {
	          flag = Hanseatic-Kontor #Need to have a Hanseatic Kontor
                   }
	random = yes
	name = "HANSEATICEVENTSNAME5"
	desc = "HANSEATICEVENTSDESC5"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION5A"
			command = { type = trade   value = -300 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION5B"
			command = { type = clrflag which = Hanseatic-Kontor }
			command = { type = losebuilding   which = -1 value = bailiff }
			command = { type = relation which = MEC value = -300 }
		}
	}

event = {
	id = 878642302
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME6"
	desc = "HANSEATICEVENTSDESC6"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION6A"
			command = { type = cash value = -50 }
			command = { type = merchants   value = 3 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION6B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 878642303
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME6"
	desc = "HANSEATICEVENTSDESC6"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION6A"
			command = { type = cash value = -50 }
			command = { type = merchants   value = 3 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION6B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 878642304
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME6"
	desc = "HANSEATICEVENTSDESC6"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION6A"
			command = { type = cash value = -50 }
			command = { type = merchants   value = 3 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION6B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 878642305
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME6"
	desc = "HANSEATICEVENTSDESC6"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION6A"
			command = { type = cash value = -50 }
			command = { type = merchants   value = 3 }
		}
	action_b = {
			name = "HANSEATICEVENTOPTION6B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 878642306
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = gainbuilding   which = -1 value = bailiff }
		}
	}

event = {
	id = 878642307
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = gainmanufactory   which = -1 value = -1 }
		}
	}
	
event = {
	id = 878642308
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642309
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642310
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642311
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642312
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642313
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642314
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = transports   which = -1 value = 2 }
		}
	}
	
event = {
	id = 878642315
	trigger = {
	          flag = Hanseatic-League #Need to be in the Hanseatic League
                   }
	random = yes
	name = "HANSEATICEVENTSNAME7"
	desc = "HANSEATICEVENTSDESC7"
	style = 0
	action_a = {
			name = "HANSEATICEVENTOPTION7A"
			command = { type = population   which = -1 value = 500 }
		}
	}

