######################################################
# File by Chris Stone                                #
# last revised by Chris Stone June 2005              #
######################################################

###########################
#shortbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4000

	name	= "TECH_SPREAD"
	tag		= shortbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					shortbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						shortbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = shortbow }                 
			}
			factor = 0.8
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = shortbow 
			}
		}
	} 	
}
###########################
#longbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4001

	name	= "TECH_SPREAD"
	tag		= longbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					longbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						longbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = longbow }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = longbow 
			}
		}
	} 	
}
###########################
#composite_longbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4002

	name	= "TECH_SPREAD"
	tag		= composite_longbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					composite_longbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						composite_longbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = composite_longbow }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = composite_longbow 
			}
		}
	} 	
}
###########################
#reinforced_longbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4003

	name	= "TECH_SPREAD"
	tag		= reinforced_longbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					reinforced_longbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						reinforced_longbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 4000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = reinforced_longbow }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = reinforced_longbow 
			}
		}
	} 	
}
###########################
#marksman_longbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4004

	name	= "TECH_SPREAD"
	tag		= marksman_longbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					marksman_longbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						marksman_longbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = marksman_longbow }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = marksman_longbow 
			}
		}
	} 	
}
###########################
#slinged_javelin spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4005

	name	= "TECH_SPREAD"
	tag		= slinged_javelin
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					slinged_javelin = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						slinged_javelin = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = slinged_javelin }                 
			}
			factor = 0.8
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = slinged_javelin 
			}
		}
	} 	
}
###########################
#light_crossbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4006

	name	= "TECH_SPREAD"
	tag		= light_crossbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					light_crossbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						light_crossbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = light_crossbow }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = light_crossbow 
			}
		}
	} 	
}
###########################
#medium_crossbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4007

	name	= "TECH_SPREAD"
	tag		= medium_crossbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					medium_crossbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						medium_crossbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = medium_crossbow }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = medium_crossbow 
			}
		}
	} 	
}
###########################
#heavy_crossbow spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4008

	name	= "TECH_SPREAD"
	tag		= heavy_crossbow
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					heavy_crossbow = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						heavy_crossbow = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = heavy_crossbow }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = heavy_crossbow 
			}
		}
	} 	
}
###########################
#arbalest spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4009

	name	= "TECH_SPREAD"
	tag		= arbalest
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					arbalest = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						arbalest = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = arbalest }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = arbalest 
			}
		}
	} 	
}
###########################
#soft_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4010

	name	= "TECH_SPREAD"
	tag		= soft_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					soft_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						soft_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = soft_leather }                 
			}
			factor = 0.8
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = soft_leather 
			}
		}
	} 	
}
###########################
#reinforced_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4011

	name	= "TECH_SPREAD"
	tag		= reinforced_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					reinforced_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						reinforced_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = reinforced_leather }                 
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = reinforced_leather 
			}
		}
	} 	
}
###########################
#boiled_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4012

	name	= "TECH_SPREAD"
	tag		= boiled_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					boiled_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						boiled_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = boiled_leather }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = boiled_leather 
			}
		}
	} 	
}
###########################
#rigid_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4013

	name	= "TECH_SPREAD"
	tag		= rigid_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					rigid_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						rigid_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = rigid_leather }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = rigid_leather 
			}
		}
	} 	
}
###########################
#scaled_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4014

	name	= "TECH_SPREAD"
	tag		= scaled_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					scaled_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						scaled_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = scaled_leather }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = scaled_leather 
			}
		}
	} 	
}
###########################
#chained_leather spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4015

	name	= "TECH_SPREAD"
	tag		= chained_leather
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					chained_leather = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						chained_leather = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = chained_leather }                 
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = chained_leather 
			}
		}
	} 	
}
###########################
#light_chainmail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4016

	name	= "TECH_SPREAD"
	tag		= light_chainmail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					light_chainmail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						light_chainmail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = light_chainmail }                 
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = light_chainmail
			}
		}
	} 	
}
###########################
#chainmail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4017

	name	= "TECH_SPREAD"
	tag		= chainmail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					chainmail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						chainmail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = chainmail }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = chainmail 
			}
		}
	} 	
}
###########################
#full_chainmail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4018

	name	= "TECH_SPREAD"
	tag		= full_chainmail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					full_chainmail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						full_chainmail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = full_chainmail }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = full_chainmail 
			}
		}
	} 	
}
###########################
#plated_chainmail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4019

	name	= "TECH_SPREAD"
	tag		= plated_chainmail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					plated_chainmail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						plated_chainmail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = full_chainmail }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = plated_chainmail 
			}
		}
	} 	
}
###########################
#quilted_coat spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4020

	name	= "TECH_SPREAD"
	tag		= quilted_coat
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					quilted_coat = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						quilted_coat = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = quilted_coat }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = quilted_coat 
			}
		}
	} 	
}
###########################
#scalemail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4021

	name	= "TECH_SPREAD"
	tag		= scalemail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					scalemail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						scalemail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = scalemail }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = scalemail 
			}
		}
	} 	
}
###########################
#half_plate spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4022

	name	= "TECH_SPREAD"
	tag		= half_plate
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					half_plate = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						half_plate = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = half_plate }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = half_plate 
			}
		}
	} 	
}
###########################
#platemail spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4023

	name	= "TECH_SPREAD"
	tag		= platemail
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					platemail = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						platemail = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = platemail }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = platemail 
			}
		}
	} 	
}
###########################
#full_plate spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4024

	name	= "TECH_SPREAD"
	tag		= full_plate
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					full_plate = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						full_plate = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = full_plate }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = full_plate 
			}
		}
	} 	
}
###########################
#handaxe spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4025

	name	= "TECH_SPREAD"
	tag		= handaxe
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					handaxe = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						handaxe = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = handaxe }                 
			}
			factor = 0.8
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = handaxe 
			}
		}
	} 	
}
###########################
#warhammer spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4026

	name	= "TECH_SPREAD"
	tag		= warhammer
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					warhammer = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						warhammer = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = warhammer }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = hills
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						mine = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						improved_mine = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = warhammer 
			}
		}
	} 	
}
###########################
#mace spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4027

	name	= "TECH_SPREAD"
	tag		= mace
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					mace = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						mace = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = mace }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = mace 
			}
		}
	} 	
}
###########################
#morningstar spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4028

	name	= "TECH_SPREAD"
	tag		= morningstar
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					morningstar = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						morningstar = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = morningstar }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = morningstar 
			}
		}
	} 	
}
###########################
#battleaxe spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4029

	name	= "TECH_SPREAD"
	tag		= battleaxe
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					battleaxe = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						battleaxe = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = battleaxe }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = battleaxe 
			}
		}
	} 	
}
###########################
#shortsword spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4030

	name	= "TECH_SPREAD"
	tag		= shortsword
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					shortsword = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						shortsword = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = shortsword }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = shortsword 
			}
		}
	} 	
}
###########################
#broadsword spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4031

	name	= "TECH_SPREAD"
	tag		= broadsword
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					broadsword = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						broadsword = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = broadsword }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = broadsword 
			}
		}
	} 	
}
###########################
#longsword spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4032

	name	= "TECH_SPREAD"
	tag		= longsword
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					longsword = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						longsword = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = longsword }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = longsword 
			}
		}
	} 	
}
###########################
#bastardsword spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4033

	name	= "TECH_SPREAD"
	tag		= bastardsword
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					bastardsword = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						bastardsword = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = bastardsword }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = bastardsword 
			}
		}
	} 	
}
###########################
#greatsword spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4034

	name	= "TECH_SPREAD"
	tag		= greatsword
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					greatsword = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						greatsword = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = greatsword }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = greatsword 
			}
		}
	} 	
}
###########################
#longspear spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4035

	name	= "TECH_SPREAD"
	tag		= longspear
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					longspear = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						longspear = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = longspear }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = longspear 
			}
		}
	} 	
}
###########################
#pike spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4036

	name	= "TECH_SPREAD"
	tag		= pike
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					pike = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						pike = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = pike }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = pike 
			}
		}
	} 	
}
###########################
#lance spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4037

	name	= "TECH_SPREAD"
	tag		= lance
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					lance = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						lance = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = lance }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = lance 
			}
		}
	} 	
}
###########################
#polearm spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4038

	name	= "TECH_SPREAD"
	tag		= polearm
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					polearm = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						polearm = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = polearm }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = polearm 
			}
		}
	} 	
}
###########################
#heavy_lance spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4039

	name	= "TECH_SPREAD"
	tag		= heavy_lance
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					heavy_lance = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						heavy_lance = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = heavy_lance }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						armory = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = heavy_lance 
			}
		}
	} 	
}
###########################
#battering_ram spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4040

	name	= "TECH_SPREAD"
	tag		= battering_ram
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					battering_ram = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						battering_ram = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = battering_ram }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = battering_ram 
			}
		}
	} 	
}
###########################
#siege_ladders spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4041

	name	= "TECH_SPREAD"
	tag		= siege_ladders
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					siege_ladders = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						siege_ladders = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = siege_ladders }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = siege_ladders 
			}
		}
	} 	
}
###########################
#siege_towers spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4042

	name	= "TECH_SPREAD"
	tag		= siege_towers
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					siege_towers = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						siege_towers = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = siege_towers }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = siege_towers 
			}
		}
	} 	
}
###########################
#trebuchet spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4043

	name	= "TECH_SPREAD"
	tag		= trebuchet
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					trebuchet = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						trebuchet = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = trebuchet }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = trebuchet 
			}
		}
	} 	
}
###########################
#mangonel spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4044

	name	= "TECH_SPREAD"
	tag		= mangonel
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					mangonel = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						mangonel = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = mangonel }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = mangonel 
			}
		}
	} 	
}
###########################
#hill_fort spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4045

	name	= "TECH_SPREAD"
	tag		= hill_fort
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					hill_fort = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						hill_fort = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = hill_fort }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.6
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.2
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = hill_fort 
			}
		}
	} 	
}
###########################
#small_castle spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4046

	name	= "TECH_SPREAD"
	tag		= small_castle
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					small_castle = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						small_castle = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = small_castle }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = small_castle 
			}
		}
	} 	
}
###########################
#medium_castle spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4047

	name	= "TECH_SPREAD"
	tag		= medium_castle
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					medium_castle = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						medium_castle = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = medium_castle }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.95
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = medium_castle 
			}
		}
	} 	
}
###########################
#large_castle spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4048

	name	= "TECH_SPREAD"
	tag		= large_castle
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					large_castle = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						large_castle = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = large_castle }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = large_castle 
			}
		}
	} 	
}
###########################
#huge_castle spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4049

	name	= "TECH_SPREAD"
	tag		= huge_castle
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					huge_castle = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						huge_castle = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = huge_castle}                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = huge_castle 
			}
		}
	} 	
}
###########################
#defensive_terrain spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4050

	name	= "TECH_SPREAD"
	tag		= defensive_terrain
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					defensive_terrain = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						defensive_terrain = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = defensive_terrain }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = hills
				}
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = defensive_terrain 
			}
		}
	} 	
}
###########################
#positional_combat spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4051

	name	= "TECH_SPREAD"
	tag		= positional_combat
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					positional_combat = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						positional_combat = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = positional_combat }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = positional_combat 
			}
		}
	} 	
}
###########################
#missile_barrage spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4052

	name	= "TECH_SPREAD"
	tag		= missile_barrage
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					missile_barrage = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						missile_barrage = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = missile_barrage }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						shortbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						longbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						composite_longbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						reinforced_longbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						marksman_longbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						slinged_javelin = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						light_crossbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						medium_crossbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						heavy_crossbow = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = {
						arbalest = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = missile_barrage 
			}
		}
	} 	
}
###########################
#drilled_pikers spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4053

	name	= "TECH_SPREAD"
	tag		= drilled_pikers
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					drilled_pikers = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						drilled_pikers = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = drilled_pikers }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = drilled_pikers 
			}
		}
	} 	
}
###########################
#unitorganization spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4054

	name	= "TECH_SPREAD"
	tag		= unitorganization
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					unitorganization = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						unitorganization = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = unitorganization }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = unitorganization 
			}
		}
	} 	
}
###########################
#offensive_terrain spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4055

	name	= "TECH_SPREAD"
	tag		= offensive_terrain
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					offensive_terrain = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						offensive_terrain = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = offensive_terrain }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = hills
				}
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = forest
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = offensive_terrain 
			}
		}
	} 	
}
###########################
#frontal_charge spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4056

	name	= "TECH_SPREAD"
	tag		= frontal_charge
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					frontal_charge = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						frontal_charge = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = frontal_charge }                 
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = frontal_charge 
			}
		}
	} 	
}
###########################
#reserves spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4057

	name	= "TECH_SPREAD"
	tag		= reserves
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					reserves = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						reserves = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = reserves }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = reserves 
			}
		}
	} 	
}
###########################
#dismounted_knights spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4058

	name	= "TECH_SPREAD"
	tag		= dismounted_knights
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					dismounted_knights = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						dismounted_knights = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = dismounted_knights }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = dismounted_knights 
			}
		}
	} 	
}
###########################
#hierarkic_command spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4059

	name	= "TECH_SPREAD"
	tag		= hierarkic_command
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					hierarkic_command = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						hierarkic_command = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = hierarkic_command }                 
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						waracademy = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						traininggrounds = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_martial
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.95
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = not value = { type = atwar } }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = misguided_warrior }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = tough_soldier }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = knowledged_tactician }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = brilliant_strategist }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = hierarkic_command 
			}
		}
	} 	
}
###########################
#two_field_system spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4060

	name	= "TECH_SPREAD"
	tag		= two_field_system
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					two_field_system = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						two_field_system = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = two_field_system }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = two_field_system 
			}
		}
	} 	
}
###########################
#three_field_system spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4061

	name	= "TECH_SPREAD"
	tag		= three_field_system
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					three_field_system = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						three_field_system = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = three_field_system }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = three_field_system 
			}
		}
	} 	
}
###########################
#stripe_ploughing spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4062

	name	= "TECH_SPREAD"
	tag		= stripe_ploughing
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					stripe_ploughing = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						stripe_ploughing = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = stripe_ploughing }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = stripe_ploughing 
			}
		}
	} 	
}
###########################
#soil_amelioration spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4063

	name	= "TECH_SPREAD"
	tag		= soil_amelioration
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					soil_amelioration = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						soil_amelioration = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = soil_amelioration }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = soil_amelioration 
			}
		}
	} 	
}
###########################
#rooting_out spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4064

	name	= "TECH_SPREAD"
	tag		= rooting_out
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					rooting_out = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						rooting_out = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = rooting_out }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = rooting_out 
			}
		}
	} 	
}
###########################
#wood_plows spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4065

	name	= "TECH_SPREAD"
	tag		= wood_plows
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					wood_plows = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						wood_plows = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = wood_plows }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = wood_plows 
			}
		}
	} 	
}
###########################
#ironedged_wood_plows spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4066

	name	= "TECH_SPREAD"
	tag		= ironedged_wood_plows
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					ironedged_wood_plows = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						ironedged_wood_plows = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = ironedged_wood_plows }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = ironedged_wood_plows 
			}
		}
	} 	
}
###########################
#ironplows spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4067

	name	= "TECH_SPREAD"
	tag		= ironplows
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					ironplows = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						ironplows = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = ironplows }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = ironplows 
			}
		}
	} 	
}
###########################
#pitchforks_and_harrows spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4068

	name	= "TECH_SPREAD"
	tag		= pitchforks_and_harrows
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					pitchforks_and_harrows = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						pitchforks_and_harrows = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = pitchforks_and_harrows }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = pitchforks_and_harrows 
			}
		}
	} 	
}
###########################
#padded_horsecollars spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4069

	name	= "TECH_SPREAD"
	tag		= padded_horsecollars
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					padded_horsecollars = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						padded_horsecollars = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = padded_horsecollars }                 
			}
			factor = 0.9
                }
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = plains
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.45
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = padded_horsecollars 
			}
		}
	} 	
}
###########################
#chickens spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4070

	name	= "TECH_SPREAD"
	tag		= chickens
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					chickens = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						chickens = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = chickens }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = chickens 
			}
		}
	} 	
}
###########################
#goats spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4071

	name	= "TECH_SPREAD"
	tag		= goats
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					goats = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						goats = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = goats }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = goats 
			}
		}
	} 	
}
###########################
#pigs spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4072

	name	= "TECH_SPREAD"
	tag		= pigs
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					pigs = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						pigs = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = pigs }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = pigs 
			}
		}
	} 	
}
###########################
#sheep spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4073

	name	= "TECH_SPREAD"
	tag		= sheep
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					sheep = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						sheep = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = sheep }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = sheep 
			}
		}
	} 	
}
###########################
#cows spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4074

	name	= "TECH_SPREAD"
	tag		= cows
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					cows = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						cows = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = cows }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = cows 
			}
		}
	} 	
}
###########################
#saltrefinery spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4075

	name	= "TECH_SPREAD"
	tag		= saltrefinery
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					saltrefinery = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						saltrefinery = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = saltrefinery }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						fishing_wharf = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = saltrefinery 
			}
		}
	} 	
}
###########################
#glassblowing spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4076

	name	= "TECH_SPREAD"
	tag		= glassblowing
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					glassblowing = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						glassblowing = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = glassblowing }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = glassblowing 
			}
		}
	} 	
}
###########################
#clothmaking spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4077

	name	= "TECH_SPREAD"
	tag		= clothmaking
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					clothmaking = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						clothmaking = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = clothmaking }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = clothmaking 
			}
		}
	} 	
}
###########################
#sugerrefinery spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4078

	name	= "TECH_SPREAD"
	tag		= sugerrefinery
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					sugerrefinery = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						sugerrefinery = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = sugerrefinery }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = sugerrefinery 
			}
		}
	} 	
}
###########################
#papermaking spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4079

	name	= "TECH_SPREAD"
	tag		= papermaking
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					papermaking = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						papermaking = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = papermaking }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = papermaking 
			}
		}
	} 	
}
###########################
#stonepit spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4080

	name	= "TECH_SPREAD"
	tag		= stonepit
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					stonepit = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						stonepit = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = stonepit }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = stonepit 
			}
		}
	} 	
}
###########################
#coalpit spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4081

	name	= "TECH_SPREAD"
	tag		= coalpit
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					coalpit = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						coalpit = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = coalpit }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = coalpit 
			}
		}
	} 	
}
###########################
#ironworks spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4082

	name	= "TECH_SPREAD"
	tag		= ironworks
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					ironworks = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						ironworks = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = ironworks }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = ironworks 
			}
		}
	} 	
}
###########################
#percussion_drilling spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4083

	name	= "TECH_SPREAD"
	tag		= percussion_drilling
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					percussion_drilling = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						percussion_drilling = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = percussion_drilling }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						mine = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = percussion_drilling 
			}
		}
	} 	
}
###########################
#cast_iron spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4084

	name	= "TECH_SPREAD"
	tag		= cast_iron
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					cast_iron = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						cast_iron = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = cast_iron }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = cast_iron 
			}
		}
	} 	
}
###########################
#basilican_structures spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4085

	name	= "TECH_SPREAD"
	tag		= basilican_structures
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					basilican_structures = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						basilican_structures = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = basilican_structures }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
   			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = ecclesiastical_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = detached_priest }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = scholarly_theologian }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = mastermind_theologian }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = basilican_structures 
			}
		}
	} 	
}
###########################
#brickwork_structures spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4086

	name	= "TECH_SPREAD"
	tag		= brickwork_structures
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					brickwork_structures = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						brickwork_structures = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = brickwork_structures }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = brickwork_structures 
			}
		}
	} 	
}
###########################
#romanesque_vaulting spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4087

	name	= "TECH_SPREAD"
	tag		= romanesque_vaulting
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					romanesque_vaulting = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						romanesque_vaulting = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = romanesque_vaulting }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = ecclesiastical_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = detached_priest }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = scholarly_theologian }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = mastermind_theologian }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = romanesque_vaulting 
			}
		}
	} 	
}
###########################
#cylindrical_structures spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4088

	name	= "TECH_SPREAD"
	tag		= cylindrical_structures
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					cylindrical_structures = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						cylindrical_structures = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = cylindrical_structures }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = ecclesiastical_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = detached_priest }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = scholarly_theologian }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = mastermind_theologian }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = cylindrical_structures 
			}
		}
	} 	
}
###########################
#gothic_buttresses spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4089

	name	= "TECH_SPREAD"
	tag		= gothic_buttresses
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					gothic_buttresses = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						gothic_buttresses = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = gothic_buttresses }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = ecclesiastical_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = detached_priest }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = martial_cleric }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = scholarly_theologian }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = mastermind_theologian }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = gothic_buttresses 
			}
		}
	} 	
}
###########################
#road_building spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4090

	name	= "TECH_SPREAD"
	tag		= road_building
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					road_building = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						road_building = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = road_building }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						tilefactory = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = road_building 
			}
		}
	} 	
}
###########################
#large_ship_building spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4091

	name	= "TECH_SPREAD"
	tag		= large_ship_building
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					large_ship_building = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						large_ship_building = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = large_ship_building }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						forestry = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						sawmill = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						fishing_wharf = yes
					}
				}
			}
   			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.35
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = large_ship_building 
			}
		}
	} 	
}
###########################
#windwheel spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4092

	name	= "TECH_SPREAD"
	tag		= windwheel
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					windwheel = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						windwheel = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = windwheel }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = windwheel 
			}
		}
	} 	
}
###########################
#waterwheel spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4093

	name	= "TECH_SPREAD"
	tag		= waterwheel
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					waterwheel = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						waterwheel = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = waterwheel }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = waterwheel 
			}
		}
	} 	
}
###########################
#black_coal spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4094

	name	= "TECH_SPREAD"
	tag		= black_coal
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					black_coal = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						black_coal = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = black_coal }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						smithy = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						mine = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						improved_mine = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
 		modifier = {
			condition = {
				type = to
				condition = { 
					type = terrain
					value = hills
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = black_coal 
			}
		}
	} 	
}
###########################
#minor_merchant_houses spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4095

	name	= "TECH_SPREAD"
	tag		= minor_merchant_houses
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					minor_merchant_houses = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						minor_merchant_houses = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = minor_merchant_houses }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = minor_merchant_houses 
			}
		}
	} 	
}
###########################
#local_merchant_houses spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4096

	name	= "TECH_SPREAD"
	tag		= local_merchant_houses
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					local_merchant_houses = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						local_merchant_houses = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = local_merchant_houses }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = local_merchant_houses 
			}
		}
	} 	
}
###########################
#mint spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4097

	name	= "TECH_SPREAD"
	tag		= mint
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					mint = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						mint = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = mint }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = mint 
			}
		}
	} 	
}
###########################
#guilds spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4098

	name	= "TECH_SPREAD"
	tag		= guilds
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					guilds = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						guilds = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = guilds }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						court_of_justice = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = guilds 
			}
		}
	} 	
}
###########################
#reknown_merchant_houses spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4099

	name	= "TECH_SPREAD"
	tag		= reknown_merchant_houses
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					reknown_merchant_houses = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						reknown_merchant_houses = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = reknown_merchant_houses }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = reknown_merchant_houses 
			}
		}
	} 	
}
###########################
#business_contracts spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4100

	name	= "TECH_SPREAD"
	tag		= business_contracts
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					business_contracts = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						business_contracts = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = business_contracts }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						court_of_justice = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = business_contracts 
			}
		}
	} 	
}
###########################
#promissory_note spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4101

	name	= "TECH_SPREAD"
	tag		= promissory_note
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					promissory_note = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						promissory_note = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = promissory_note }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						court_of_justice = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						moneylenders = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = promissory_note 
			}
		}
	} 	
}
###########################
#letters_of_credit spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4102

	name	= "TECH_SPREAD"
	tag		= letters_of_credit
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					letters_of_credit = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						letters_of_credit = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = letters_of_credit }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						court_of_justice = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						moneylenders = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = letters_of_credit 
			}
		}
	} 	
}
###########################
#double_entry_bookkeeping spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4103

	name	= "TECH_SPREAD"
	tag		= double_entry_bookkeeping
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					double_entry_bookkeeping = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						double_entry_bookkeeping = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = double_entry_bookkeeping }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						moneylenders = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = double_entry_bookkeeping 
			}
		}
	} 	
}
###########################
#foreign_accreditation spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4104

	name	= "TECH_SPREAD"
	tag		= foreign_accreditation
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					foreign_accreditation = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						foreign_accreditation = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = foreign_accreditation }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						court_of_justice = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						moneylenders = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = foreign_accreditation 
			}
		}
	} 	
}
###########################
#annual_sailing spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4105

	name	= "TECH_SPREAD"
	tag		= annual_sailing
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					annual_sailing = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						annual_sailing = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = annual_sailing }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = annual_sailing 
			}
		}
	} 	
}
###########################
#local_fairs spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4106

	name	= "TECH_SPREAD"
	tag		= local_fairs
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					local_fairs = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						local_fairs = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = local_fairs }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						medium_castle = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_castle = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						huge_castle = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
   			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = local_fairs 
			}
		}
	} 	
}
###########################
#distant_trading spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4107

	name	= "TECH_SPREAD"
	tag		= distant_trading
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					distant_trading = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						distant_trading = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = distant_trading }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = distant_trading 
			}
		}
	} 	
}
###########################
#exotic_trading spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4108

	name	= "TECH_SPREAD"
	tag		= exotic_trading
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					exotic_trading = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						exotic_trading = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = exotic_trading }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = exotic_trading 
			}
		}
	} 	
}
###########################
#international_fairs spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4109

	name	= "TECH_SPREAD"
	tag		= international_fairs
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					international_fairs = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						international_fairs = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = international_fairs }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_diplomacy
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = owner
					condition = { type = is_independent }
				}
			}
			condition = { type = from
				condition = { type = owner
					condition = { type = is_vassal }
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = same_realm } }
			condition = { type = from
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = court_education }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = hole_in_the_pocket }
			}
			factor = 0.95
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = proven_accountant }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = fortune_builder }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = to
				condition = { type = trait value = midas_touched }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = international_fairs 
			}
		}
	} 	
}
###########################
#divine_rights spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4110

	name	= "TECH_SPREAD"
	tag		= divine_rights
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					divine_rights = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						divine_rights = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = divine_rights }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = noble_power value = 0.4 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = noble_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.1
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.2
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = divine_rights 
			}
		}
	} 	
}
###########################
#chronicle_writing spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4111

	name	= "TECH_SPREAD"
	tag		= chronicle_writing
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					chronicle_writing = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						chronicle_writing = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = chronicle_writing }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = noble_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = noble_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = chronicle_writing 
			}
		}
	} 	
}
###########################
#romantic_poetry spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4112

	name	= "TECH_SPREAD"
	tag		= romantic_poetry
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					romantic_poetry = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						romantic_poetry = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = romantic_poetry }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = noble_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = noble_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = romantic_poetry 
			}
		}
	} 	
}
###########################
#heraldry spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4113

	name	= "TECH_SPREAD"
	tag		= heraldry
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					heraldry = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						heraldry = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = heraldry }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = noble_power value = 0.4 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = noble_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.2
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.4
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = heraldry 
			}
		}
	} 	
}
###########################
#oblige_noblesse spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4114

	name	= "TECH_SPREAD"
	tag		= oblige_noblesse
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					oblige_noblesse = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						oblige_noblesse = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = oblige_noblesse }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = noble_power value = 0.4 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = noble_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = oblige_noblesse 
			}
		}
	} 	
}
###########################
#divine_duty spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4115

	name	= "TECH_SPREAD"
	tag		= divine_duty
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					divine_duty = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						divine_duty = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = divine_duty }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = peasant_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = peasant_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.2
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.4
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = divine_duty 
			}
		}
	} 	
}
###########################
#jongleurs spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4116

	name	= "TECH_SPREAD"
	tag		= jongleurs
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					jongleurs = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						jongleurs = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = jongleurs }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = peasant_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = peasant_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = jongleurs 
			}
		}
	} 	
}
###########################
#troubadours spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4117

	name	= "TECH_SPREAD"
	tag		= troubadours
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					troubadours = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						troubadours = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = troubadours }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = peasant_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = peasant_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = troubadours 
			}
		}
	} 	
}
###########################
#miracle_plays spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4118

	name	= "TECH_SPREAD"
	tag		= miracle_plays
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					miracle_plays = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						miracle_plays = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = miracle_plays }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = peasant_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = peasant_power
						value = 0.2
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = miracle_plays 
			}
		}
	} 	
}
###########################
#carnivals spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4119

	name	= "TECH_SPREAD"
	tag		= carnivals
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					carnivals = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						carnivals = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = carnivals }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = peasant_power value = 0.45 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = peasant_power
						value = 0.2
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = carnivals 
			}
		}
	} 	
}
###########################
#the_seven_liberal_arts spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4120

	name	= "TECH_SPREAD"
	tag		= the_seven_liberal_arts
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					the_seven_liberal_arts = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						the_seven_liberal_arts = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = the_seven_liberal_arts }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = the_seven_liberal_arts 
			}
		}
	} 	
}
###########################
#monastic_schools spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4121

	name	= "TECH_SPREAD"
	tag		= monastic_schools
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					monastic_schools = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						monastic_schools = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 2000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = monastic_schools }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.35 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.45 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.55 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.05
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { type = same_religion }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = monastic_schools 
			}
		}
	} 	
}
###########################
#cathedral_schools spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4122

	name	= "TECH_SPREAD"
	tag		= cathedral_schools
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					cathedral_schools = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						cathedral_schools = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 4000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = cathedral_schools }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						school = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.35 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.45 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.55 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.05
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { type = same_religion }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = cathedral_schools 
			}
		}
	} 	
}
###########################
#universities spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4123

	name	= "TECH_SPREAD"
	tag		= universities
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					universities = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						universities = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 8000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = universities }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						school = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.35 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.45 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.55 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.05
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = universities 
			}
		}
	} 	
}
###########################
#academic_disciplines spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4124

	name	= "TECH_SPREAD"
	tag		= academic_disciplines
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					academic_disciplines = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						academic_disciplines = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 15000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = academic_disciplines }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.35 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.45 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.55 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.05
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = academic_disciplines 
			}
		}
	} 	
}

#############################################################################
# "Thoughts" discovery should be hard to discover and more likely to spread #
#############################################################################

##############################
# aristotelian_logics spread #	   
##############################
						   
province_x_province_event = {
	id = 4125

	name	= "TECH_SPREAD"
	tag	= aristotelian_logics
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					aristotelian_logics = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						aristotelian_logics = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = aristotelian_logics }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = {
					type = has_improvement
					value = { school = yes }
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = {
					type = has_improvement
					value = { school = yes }
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.7
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = aristotelian_logics 
			}
		}
	} 	
}
######################
# scholastics spread #	   
######################
						   
province_x_province_event = {
	id = 4126

	name	= "TECH_SPREAD"
	tag	= scholastics
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					scholastics = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						scholastics = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = scholastics }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = has_advance value = { aristotelian_logics = yes } }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = {
					type = has_improvement
					value = { school = yes }
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = {
					type = has_improvement
					value = { school = yes }
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = scholastics 
			}
		}
	} 	
}
####################
# astrology spread #	   
####################
						   
province_x_province_event = {
	id = 4127

	name	= "TECH_SPREAD"
	tag	= astrology
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					astrology = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						astrology = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = astrology }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = has_advance value = { scholastics = yes } }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = astrology 
			}
		}
	} 	
}
#############################
# natural_philosophy spread #	   
#############################
						   
province_x_province_event = {
	id = 4128

	name	= "TECH_SPREAD"
	tag	= natural_philosophy
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					natural_philosophy = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						natural_philosophy = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = natural_philosophy }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = has_advance value = { astrology = yes } }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = natural_philosophy 
			}
		}
	} 	
}
##################
# science spread #	   
##################
						   
province_x_province_event = {
	id = 4129

	name	= "TECH_SPREAD"
	tag	= science
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					science = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						science = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = science }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = has_advance value = { natural_philosophy = yes } }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
                			condition = {
                				type = has_improvement
                				value = { library = yes }
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = science 
			}
		}
	} 	
}
###########################
#sculptures spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4130

	name	= "TECH_SPREAD"
	tag		= sculptures
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					sculptures = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						sculptures = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = sculptures }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = burgher_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = burgher_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.6
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = sculptures 
			}
		}
	} 	
}
###########################
#musical_instruments spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4131

	name	= "TECH_SPREAD"
	tag		= musical_instruments
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					musical_instruments = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						musical_instruments = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = musical_instruments }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = burgher_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = burgher_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.3
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = musical_instruments 
			}
		}
	} 	
}
###########################
#ballads spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4132

	name	= "TECH_SPREAD"
	tag		= ballads
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					ballads = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						ballads = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = ballads }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = burgher_power value = 0.45 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = burgher_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = ballads 
			}
		}
	} 	
}
###########################
#fashion_clothes spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4133

	name	= "TECH_SPREAD"
	tag		= fashion_clothes
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					fashion_clothes = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						fashion_clothes = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = fashion_clothes }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = burgher_power value = 0.5 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = burgher_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.4
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = fashion_clothes 
			}
		}
	} 	
}
###########################
#vernacular_literature spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4134

	name	= "TECH_SPREAD"
	tag		= vernacular_literature
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					vernacular_literature = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						vernacular_literature = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = vernacular_literature }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = burgher_power value = 0.5 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = burgher_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }                 
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.8
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = vernacular_literature 
			}
		}
	} 	
}
###########################
#relics spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4135

	name	= "TECH_SPREAD"
	tag		= relics
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					relics = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						relics = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = relics }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.4 }                 
			}
			factor = 0.8
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.2
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = relics 
			}
		}
	} 	
}
###########################
#music_notation_system spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4136

	name	= "TECH_SPREAD"
	tag		= music_notation_system
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					music_notation_system = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						music_notation_system = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = music_notation_system }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.4 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = music_notation_system 
			}
		}
	} 	
}
###########################
#choir_song spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4137

	name	= "TECH_SPREAD"
	tag		= choir_song
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					choir_song = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						choir_song = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = choir_song }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.4 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.2
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.1
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.75
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = choir_song 
			}
		}
	} 	
}
###########################
#tapestries spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4138

	name	= "TECH_SPREAD"
	tag		= tapestries
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					tapestries = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						tapestries = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = tapestries }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						spinningmill = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.4 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.2
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.1
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.85
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = tapestries 
			}
		}
	} 	
}
###########################
#extravagant_decoration spread	  #	   
###########################
						   
province_x_province_event = {
	id = 4139

	name	= "TECH_SPREAD"
	tag		= extravagant_decoration
	picture = event_techspread
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					extravagant_decoration = yes
				}
			}
		}

		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						extravagant_decoration = yes
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = extravagant_decoration }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						spinningmill = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						glassworks = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						dyeworks = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.4 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = {
				type = to
				condition = {
					type = not
					value = { 
						type = clergy_power
						value = 0.15
					}
				}
			}
			factor = 1.1
                }
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 8
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 10
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { 
				type = to
				condition = {
					type = ruler_stewardship
					value = 13
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.9
		}
		modifier = {
			condition = { type = same_religion }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.9
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = extravagant_decoration 
			}
		}
	} 	
}

###########################################################################
# "Religious" tech are used for Heresy                                    #
# A lot of events will make these tech to appear anyway                   #
###########################################################################

# Religious Stringency

############################
# clerical_celibacy spread #	   
############################
						   
province_x_province_event = {
	id = 4140

	name	= "TECH_SPREAD"
	tag	= clerical_celibacy
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					clerical_celibacy = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						clerical_celibacy = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = clerical_celibacy }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { 
				type = to
				condition = { 
					type = not
					value = {
						type = ruler_religion
						value = catholic
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 
			effect = { 
				type = add_advance 
				value = clerical_celibacy 
			}
		}
	} 	
}
################################
# letters_of_indulgence spread #	   
################################
						   
province_x_province_event = {
	id = 4141

	name	= "TECH_SPREAD"
	tag	= letters_of_indulgence
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					letters_of_indulgence = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						letters_of_indulgence = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = letters_of_indulgence }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.75
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						templar_house = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { 
				type = to
				condition = { 
					type = not
					value = {
						type = ruler_religion
						value = catholic
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 
			effect = { 
				type = add_advance 
				value = letters_of_indulgence 
			}
		}
	} 	
}
######################
# inquisition spread #	   
######################
						   
province_x_province_event = {
	id = 4142

	name	= "TECH_SPREAD"
	tag	= inquisition
	picture = event_heretic
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					inquisition = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						inquisition = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = inquisition }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = inquisition 
			}
		}
	} 	
}
##############################
# formalized_lithurgy spread #	   
##############################
						   
province_x_province_event = {
	id = 4143

	name	= "TECH_SPREAD"
	tag	= formalized_lithurgy
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					formalized_lithurgy = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						formalized_lithurgy = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = formalized_lithurgy }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { 
				type = to
				condition = { 
					type = not
					value = {
						type = ruler_religion
						value = catholic
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.5
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = formalized_lithurgy 
			}
		}
	} 	
}
##################
# jubilee spread #	   
##################
						   
province_x_province_event = {
	id = 4144

	name	= "TECH_SPREAD"
	tag	= jubilee
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					jubilee = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						jubilee = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = jubilee }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 0.95
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { 
				type = to
				condition = { 
					type = not
					value = {
						type = ruler_religion
						value = catholic
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = jubilee 
			}
		}
	} 	
}

# Religious Flexibility

###################
# ascetism spread #	   
###################
						   
province_x_province_event = {
	id = 4145

	name	= "TECH_SPREAD"
	tag	= ascetism
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					ascetism = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						ascetism = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 750

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = ascetism }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 1.3
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = ascetism 
			}
		}
	} 	
}
############################
# apostolic_poverty spread #	   
############################
						   
province_x_province_event = {
	id = 4146

	name	= "TECH_SPREAD"
	tag	= apostolic_poverty
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					apostolic_poverty = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						apostolic_poverty = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 1500

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = apostolic_poverty }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 1.3
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = apostolic_poverty 
			}
		}
	} 	
}
#########################################
# critical_bible_interpretations spread #	   
#########################################
						   
province_x_province_event = {
	id = 4147

	name	= "TECH_SPREAD"
	tag	= critical_bible_interpretations
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					critical_bible_interpretations = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						critical_bible_interpretations = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 3000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = critical_bible_interpretations }                 
			}
			factor = 0.9
                }

		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_advance
					value = { inquisition = yes }
				}
			}
			factor = 2
		}

		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						monastery = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 1.3
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.6
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = critical_bible_interpretations 
			}
		}
	} 	
}
#############################
# bible_translations spread #	   
#############################
						   
province_x_province_event = {
	id = 4148

	name	= "TECH_SPREAD"
	tag	= bible_translations
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					bible_translations = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						bible_translations = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 6000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = bible_translations }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						domed_church = yes
					}
				}
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 1.3
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.5
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.7
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = bible_translations 
			}
		}
	} 	
}
############################
# critical_thinking spread #	   
############################
						   
province_x_province_event = {
	id = 4149

	name	= "TECH_SPREAD"
	tag	= critical_thinking
	picture = event_religion
	trigger	= {
		condition = {
			type = from
			condition = { 
				type = has_advance
				value = {
					critical_thinking = yes
				}
			}
		}
		condition = {
			type = to
			condition = {
				type = not
				value = {
					type = has_advance
					value = {
						critical_thinking = yes
					}
				}
			}
		}
		condition = { type = or
			condition = { type = same_realm }
			condition = { type = same_religion }
		}
	}

	mean_time_to_happen = {
		months = 10000

		modifier = {
			condition = {
				type = to
				condition = { type = advance_focus value = critical_thinking }                 
			}
			factor = 0.9
                }
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						large_church = yes
					}
				}
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						cathedral = yes
					}
				}
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						library = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						university = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						civilian_harbour = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						naval_harbour = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						grand_shipyard = yes
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						roadnet = yes
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = from
				condition = { 
					type = has_improvement
					value = { 
						extensive_roadnet = yes
					}
				}
			}
			factor = 0.85
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.5 }
			}
			factor = 1.1
		}
		modifier = {
			condition = {
				type = to
				condition = { type = clergy_power value = 0.66 }
			}
			factor = 1.2
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.25
					}
				}
			}
			factor = 0.9
		}
		modifier = {
			condition = {
				type = to
				condition = { 
					type = not
					value = {
						type = clergy_power
						value = 0.11
					}
				}
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = same_culture }
			factor = 0.8
		}
		modifier = {
			condition = { type = same_ruler }
			factor = 0.7
		}
		modifier = {
			condition = { type = same_realm }
			factor = 0.8
		}
		modifier = {
			condition = { type = to
				condition = { type = owner
					condition = { type = atwar }
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = same_realm }
			condition = { type = to
				condition = { type = capital value = yes }
			}
			factor = 0.75
		}
	}

	immidiate = {
		effect = { 
			type = to 

			effect = { 
				type = add_advance 
				value = critical_thinking 
			}
		}
	} 	
}
