#character
on_yearly_pulse = {
	events = {
		hist.28 # Extreme weather events of 535-536
	}
	random_events = {
		# Flavour Events
		100 = WtWSMS_flavour.1
		100 = WtWSMS_flavour.2
		100 = WtWSMS_flavour.3
		100 = WtWSMS_flavour.4
		100 = WtWSMS_flavour.7
		100 = WtWSMS_flavour.8
		100 = WtWSMS_flavour.9
		100 = WtWSMS_flavour.10
		100 = WtWSMS_flavour.11
		100 = WtWSMS_flavour.12
		100 = WtWSMS_flavour.13
		100 = WtWSMS_flavour.14
		100 = WtWSMS_flavour.15
		100 = WtWSMS_flavour.16
		100 = WtWSMS_flavour.17
		100 = WtWSMS_flavour.18
		100 = WtWSMS_flavour.19

		#Roman Senate Events
		300 = SENATE.9000
		300 = SENATE.9001
		300 = SENATE.9002
		300 = SENATE.9003
	}
}
on_five_year_pulse = {
	random_events = {
		30 = historical_wtwsms.7 # Riots breaks out in Constantinople against an Isaurian emperor
		70 = 0
	}
}

# For characters older than AGE_CHILDHOOD_PULSE but not an adult as defined by ADULT_AGE_FEMALE and ADULT_AGE_MALE
on_yearly_childhood_pulse = {
	events = {
		WtWSMS_flavour.31 # Rite-of-passage ceremony
	}
}

#character
on_decade_pulse = {
	random_events = {
		30 = WtWSMS_flavour.51 # Visigothic Kings table
		70 = 0
	}
}

# character
on_birth = {
	events = {
		zusk_event.52 # Descendents of the Prophet
	}
}

#character
on_crusade_creation = {
	events = {
		spirit.10 # Zoroastrian Holy War against Abrahamics 
		spirit.11 # Zoroastrian Holy War against Pagans 
 		spirit.12 # Zoroastrian Holy War against Heretics
		spirit.13 # Zoroastrian Holy War against Dharmics
 	}
}

# Sent to employers of both spouses - ROOT is employer. FROM is employers "employee". new_character is the other spouse.
on_marriage = {
	events = {
		spirit.24 # Valentinian Bridal Chamber
 	}
}

# ROOT is the dead character
on_death = {
	events = {
		zusk_islam_event.8 # Sunni/Shiite Split
		WtWSMS_foederati.23 # Foederati death
		historical_wtwsms.6 # Julius Nepos dies without a heir
		WtWSMS_tribal.1 # Tribal kingdom fractures on death of ruler
	}
}

on_startup = {
	events = {
	    #MZ_events.txt
		ZOR.511 #Ctesiphon Library
		ZOR.512 #Nahrawan Canal
		ZOR.513 #Nahrawan Canal
		ZOR.514 #Nahrawan Canal
		ZOR.515 #Nahrawan Canal
		
		beta.1 # Beta status warning
		
		misc_event.12
	}
}

on_major_battle_won_leader = {
	random_events = {
		20 = imperial_legacy.3 # Roman agnomen for military achievements
		20 = imperial_legacy.4 # Roman agnomen for military achievements
		10 = WtWSMS_pots.16 # Won major battle with the "help" of the Christian god
	}
}

# ROOT is the character, FROM is the title, FROMFROM is the old holder
on_new_holder = {
	events = {
		misc_event.6 # Ask for Senate approval
		WtWSMS_flavour.49 # Viriatus nick
		misc_event.8 #Keep Bureaucratic government after switching primary title
	}
}

# From = Attacker, Root = Defender
on_war_ended_defeat = {
	events = {
		WtWSMS_foederati.20 # Romans force barbarians into foederati status after enforcing demands
	}
}

# From = Attacker, Root = Defender
on_war_ended_whitepeace = {
	events = {
		WtWSMS_foederati.22 # Barbarians can open foederati negotiations with the Romans after white peace
	}
}

# The taken Holding title is in FROM.
on_siege_won_leader = {
	events = {
		misc_event.13 # War-torn province after siege
	}
}

# A heresy has become the new norm, replacing the old orthodoxy
on_heresy_takeover = {
	events = {
		misc_event.9 # Nicene becomes heresy, disable Great Schism
	}
}

# ROOT is the creating character
# FROM is the title
on_create_title = {
	events = {
		WtWSMS_flavour.49 # Viriatus nick
		misc_event.8 #Keep Bureaucratic government after switching primary title
	}
}

###########################
# DIPLOMATIC NOTIFICATIONS
###########################

DEMAND_RELIGIOUS_CONVERSION_INTERACTION_ACCEPT_EVENT = {
	events = {
		#spirit.33 #doesn't exist
	}
}

REVOKE_TITLE_INTERACTION_ACCEPT_EVENT = {
	events = {
		misc_event.10 # Prevent Papal States title revocation
	}
}