# thesmophoria, fertility festival

narrative_event = {		# introduce the idea, ancient rite of fertility revived for the new era, charge attendees
	title = EVTTITLAmzCul.250
	id = AmzCul.250
	desc = EVTDESCAmzCul.250
	picture = GFX_evt_hellenic_temple
	border = GFX_event_narrative_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# let fly the carrier pidgeons!
		name = EVTOPTAAmzCul.250
		ai_chance = { factor = 100 }
		clr_character_flag = thesmophoria_decision_flag
		hidden_tooltip = {
			any_character = {
				limit = {
					NOT = { character = ROOT }
					is_adult = yes
					age < 45
					war = no
					NOT = { is_inaccessible_or_incapable_trigger = yes } 
					NOR = {
						trait = chaste
						trait = celibate
					}
					wealth = 25
					is_weak_trigger = no
					health >= 4
					combat_rating >= 10
					OR = {
						is_amazonian_culture_trigger = yes
					}
					OR = {
						trait = is_amazonian
						trait = is_amazonian_immortal
					}
				}
				random_list = {
					90 = { 
						trigger = { ai = yes }
					}
					10 = {
						letter_event = { id = AmzCul.251 }	# invitations
					}
					35 = { 
						trigger = { 
							OR = {
								trait = lustful
								trait = fair
								NOT = { culture = ROOT }
							}
						}
						letter_event = { id = AmzCul.251 }	# invitations
					}
				}		
			}
			clr_global_flag = thesmophoria_event_flag
			set_global_flag = thesmophoria_event_flag
			set_character_flag = hosting_thesmophoria_flag
			set_character_flag = attending_thesmophoria_flag
		}
		custom_tooltip = { text = hosting_thesmophoria_tt }
		add_trait = travelling
		prestige = -500
		wealth = -500
		character_event = { id = AmzCul.252 days = 15 }	# conducts openning ceremony
	}
	option = {	# not for me
		name = EVTOPTBAmzCul.250
		ai_chance = { factor = 10 }
		clr_character_flag = thesmophoria_decision_flag
	}
}


letter_event = {	# invitation offer
	id = AmzCul.251
	desc = EVTDESCAmzCul.251
	
	is_triggered_only = yes

	option = { 		# accept invitation, sounds like a good time
		name = EVTOPTAAmzCul.251
		trigger = { has_character_flag = thesmophoria_participant } 
		ai_chance = { 
			factor = 10
			modifier = {
				factor = 2
				OR = {
					religion_group = pagan_group
					trait = sympathy_pagans
					society_member_of = warrior_lodge_amazonian
					has_character_flag = thesmophoria_participant	# likely to go again
				}
			}
			modifier = {
				factor = 2
				OR = {
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			}
			modifier = {
				factor = 5
				OR = {
					trait = lustful
					trait = hedonist
					trait = seductress
				}
			}
			modifier = {
				factor = 3
				OR = {
					trait = homosexual
					trait = gregarious
					trait = uncouth
					trait = drunkard
				}
			}
			modifier = {
				factor = 1.5
				is_married = no
			}
			modifier = {
				factor = 1.5
				is_married_matrilineally = yes
			}
		}
		add_trait = travelling
		wealth = -25
		hidden_tooltip {
			character_event = { id = AmzCul.253 days = 15 }	# observes openning ceremony
			FROM = { character_event = { id = AmzCul.2511 days = 15 } }	# pay host
			set_character_flag = attending_thesmophoria_flag
		}
	}
	option = { 		# sounds intriguing
		name = EVTOPTBAmzCul.251
		trigger = { NOT = { has_character_flag = thesmophoria_participant } }
		ai_chance = { 
			factor = 10
			modifier = {
				factor = 2
				OR = {
					religion_group = pagan_group
					trait = sympathy_pagans
					society_member_of = warrior_lodge_amazonian
				}
			}
			modifier = {
				factor = 2
				OR = {
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
				}
			}
			modifier = {
				factor = 5
				OR = {
					trait = lustful
					trait = hedonist
					trait = seductress
				}
			}
			modifier = {
				factor = 3
				OR = {
					trait = homosexual
					trait = gregarious
					trait = uncouth
					trait = drunkard
				}
			}
			modifier = {
				factor = 1.5
				is_married = no
			}
			modifier = {
				factor = 1.5
				is_married_matrilineally = yes
			}
		}
		add_trait = travelling
		wealth = -25
		hidden_tooltip {
			character_event = { id = AmzCul.253 days = 15 }	# observes openning ceremony
			FROM = { character_event = { id = AmzCul.2511 days = 15 } }	# pay host
			set_character_flag = attending_thesmophoria_flag
		}
	}
	option = { 		# refuse invitation, maybe not this time
		name = EVTOPTCAmzCul.251
		ai_chance = { 
			factor = 1
			modifier = {
				factor = 10
				OR = {
					religion_group = muslim
					religion_group = indian_group
					religion_allows_female_temple_holders = no 
				}
			}
			modifier = {
				factor = 5
				OR = {
					trait = shy
					trait = slothful
					trait = content
					trait = dull
				}
			}
			modifier = {
				factor = 1.5
				is_married = yes
				is_married_matrilineally = no
			}
			modifier = {
				factor = 10
				OR = {
					opinion = {	# my opinion of inviter
						who = FROM
						value < 10
					}
					reverse_opinion = {	# inviter's opinion of me
						who = FROM
						value < 10
					}
				}
			}
		}
	}
}

character_event = { # attendees pay the host
	id = AmzCul.2511
	hide_window = yes
	
	is_triggered_only = yes
	
	option = {	# pony up
		ai_chance = { factor = 10 }
		wealth = 25
		prestige = 25
	}
}

character_event = { # host conducts the openning ceremony
	id = AmzCul.252
	desc = EVTDESCAmzCul.252
	picture = GFX_evt_magic_ritual
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	immediate = {
		random_list = { 
			33 = { sound_effect = sacrifice_cattle_01 } 
			33 = { sound_effect = sacrifice_cattle_02 } 
			33 = { sound_effect = sacrifice_cattle_03 } 
		}
	}
	
	option = {	# now let us all get blind drunk!
		name = EVTOPTAAmzCul.252
		ai_chance = { factor = 10 }
		hidden_tooltip = {
			random_list = {		# first events
				10 = { character_event = { id = AmzCul.254 days = 15 } }
				10 = { character_event = { id = AmzCul.255 days = 15 } }
			}
			set_character_flag = thesmophoria_participant
		}
	}
}

character_event = { # attendee observes the openning ceremony, attendees the nutz
	id = AmzCul.253
	desc = EVTDESCAmzCul.253
	picture = GFX_evt_magic_ritual
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	immediate = {
		random_list = { 
			33 = { sound_effect = sacrifice_cattle_01 } 
			33 = { sound_effect = sacrifice_cattle_02 } 
			33 = { sound_effect = sacrifice_cattle_03 } 
		}
	}
	
	option = {	# this isn't what I expected
		name = EVTOPTAAmzCul.253
		ai_chance = { factor = 10 }
		trigger = {
			NOR = {
				has_character_flag = thesmophoria_participant
				trait = drunkard
			}
		}
	}
	option = {	# I love Thesmophoria
		name = EVTOPTBAmzCul.253
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				has_character_flag = thesmophoria_participant
				trait = drunkard
			}
		}
	}
	
	after = {
		hidden_tooltip = {
			random_list = {		# first events
				10 = { character_event = { id = AmzCul.254 days = 15 } }
				10 = { character_event = { id = AmzCul.255 days = 15 } }
			}
			set_character_flag = thesmophoria_participant
		}
	}
}

character_event = { # event 1a, meet new friend
	id = AmzCul.254
	desc = EVTDESCAmzCul.254
	picture = GFX_evt_campfire_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# just sit and listen
		name = EVTOPTAAmzCul.254
		ai_chance = { factor = 10 }
		trigger = { trait = shy }
	}
	option = {	# "that cow, amiright?"
		name = EVTOPTBAmzCul.254
		ai_chance = { factor = 10 }
		trigger = {
			NOR = {
				trait = gregarious
				trait = shy
				trait = socializer
				trait = poet
			}
		}
		random_character = {
			limit = {
				has_character_flag = attending_thesmophoria_flag
				ai = yes
				NOR = {
					is_friend = ROOT
					is_foe = ROOT
					character = ROOT 
				}
			}
			random = {
				chance = 10
				add_friend = ROOT
			}
		}
	}
	option = {	# "This reminds of a story"
		name = EVTOPTCAmzCul.254
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				trait = gregarious
				trait = socializer
				trait = poet
			}
		}
		random_character = {
			limit = {
				has_character_flag = attending_thesmophoria_flag
				ai = yes
				NOR = {
					is_friend = ROOT
					is_foe = ROOT
					character = ROOT 
				}
			}
			random = {
				chance = 50
				add_friend = ROOT
			}
		}
	}
	
	after = {
		hidden_tooltip = {
			random_list = {		# second events
				10 = { character_event = { id = AmzCul.256 days = 15 } }
				10 = { character_event = { id = AmzCul.257 days = 15 } }
			}
		}
	}
}

character_event = { # event 1b, learn about another culture through dance, +1 learning
	id = AmzCul.255
	desc = EVTDESCAmzCul.255
	picture = GFX_evt_campfire_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
		option = {	# ugh
		name = EVTOPTAAmzCul.255
		ai_chance = { factor = 10 }
		trigger = { trait = dull }
	}
	option = {	# watch from a respectful distance
		name = EVTOPTBAmzCul.255
		ai_chance = { factor = 10 }
		trigger = {
			NOR = {
				trait = shrewd
				trait = dull
				trait = socializer
				trait = gregarious
			}
		}
		random = {
			chance = 30
			change_learning = 1
		}
	}
	option = {	# Admire their footwork. "Could you teach me some of those moves?"
		name = EVTOPTCAmzCul.255
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				trait = shrewd
				trait = socializer
				trait = gregarious
			}
		}
		random = {
			chance = 30
			change_learning = 2
		}
	}
	
	after = {
		hidden_tooltip = {
			random_list = {		# second events
				10 = { character_event = { id = AmzCul.256 days = 15 } }
				10 = { character_event = { id = AmzCul.257 days = 15 } }
			}
		}
	}
}

character_event = { # event 2a, discover an olisbos in your tent
	id = AmzCul.256
	desc = EVTDESCAmzCul.256
	picture = GFX_evt_campfire_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# I'm finding a new tent. 
		name = EVTOPTAAmzCul.256
		ai_chance = { factor = 10 }
		trigger = {
			NOR = {
				trait = lustful
				trait = hedonist
				trait = homosexual
			}
		}
	}
	option = {	# I don't know. I don't want to know. 
		name = EVTOPTBAmzCul.256
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				trait = lustful
				trait = hedonist
				trait = homosexual
			}
		}
		piety = 50
	}
	option = {	# Well, it's mine now.
		name = EVTOPTCAmzCul.256
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				trait = lustful
				trait = hedonist
				trait = homosexual
			}
		}
		add_artifact = olisbos_medium		
	}
	
	after = {
		hidden_tooltip = {
			character_event = { id = AmzCul.258 days = 15 } 
		}
	}
}

character_event = { # event 2b, take weird drug and gain +1 health 
	id = AmzCul.257
	desc = EVTDESCAmzCul.257
	picture = GFX_evt_campfire_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# I'd better not.
		name = EVTOPTAAmzCul.257
		ai_chance = { factor = 1 }
	}
	option = {	# What harm could it do?
		name = EVTOPTBAmzCul.257
		ai_chance = { factor = 1 }
		random_list = {		
			10 = { health = 0.5 }
			10 = { health = -0.5 }
		}
	}
	option = {	# It's actually safer to ingest the herb than smoke it.
		name = EVTOPTCAmzCul.257
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				learning >=16
				trait = mystic
				trait = physician
				trait = shrewd
			}
		}
		health = 1		
	}
	
	after = {
		hidden_tooltip = {
			character_event = { id = AmzCul.258 days = 15 } 
		}
	}
}

character_event = { # closing event
	id = AmzCul.258
	desc = EVTDESCAmzCul.258
	picture = GFX_evt_campfire_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# I hope everyone enjoyed themselves
		name = EVTOPTAAmzCul.258
		ai_chance = { factor = 10 }
		trigger = {
			has_character_flag = hosting_thesmophoria_flag
		}
		hidden_tooltip = {
			character_event = { id = AmzCul.259 days = 15 } 
		}
		add_character_modifier = { 
			name = thesmophoric_modifier
			years = 5
		}
	}
	option = {	# what a time I've had
		name = EVTOPTAAmzCul.258
		ai_chance = { factor = 10 }
		trigger = {
			NOT = { has_character_flag = hosting_thesmophoria_flag }
		}
		hidden_tooltip = {
			character_event = { id = AmzCul.260 days = 15 } 
		}
		add_character_modifier = { 
			name = thesmophoric_modifier
			years = 5
		}
	}
}

character_event = { # hangover passed, host
	id = AmzCul.259
	desc = EVTDESCAmzCul.259
	picture = GFX_evt_recovery
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# I hope everyone enjoyed themselves
		name = EVTOPTAAmzCul.259
		ai_chance = { factor = 10 }
		hidden_tooltip = {
			clr_character_flag = hosting_thesmophoria_flag
			clr_character_flag = attending_thesmophoria_flag
		}
		remove_trait = travelling
	}
}

character_event = { # return home in the early hours of the morning
	id = AmzCul.260
	desc = EVTDESCAmzCul.260
	picture = GFX_evt_riders_night_hf
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	option = {	# time to crawl into bed, ready for another day
		name = EVTOPTAAmzCul.260
		ai_chance = { factor = 10 }
		hidden_tooltip = {
			clr_character_flag = attending_thesmophoria_flag
		}
		remove_trait = travelling
	}
}











