﻿namespace = divine_relationship_event

#########################################
#       Divine Relationship Event       #
#########################################

# Set relationship
divine_relationship_event.1111 = {
	type = character_event
	title = set_relationship_divine_name_high        ## "Decree of a High God"
	desc = set_relationship_divine_desc_high         ## "With infinite force, you forge or sever ties in the lives of mortals. Your will alone reshapes destinies."
	theme = default
	left_portrait = scope:recipient

	## Declares the recipient an Eternal Ally of a High God.
	option = {
		name = set_relationship_high_friend_add
		trigger = {
			scope:actor = {
				can_set_relation_friend_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_friend = {
				reason = friend_divine_high            ## "You have been declared an Eternal Ally by a High God."
				target = scope:recipient
			}
		}
	}

	## Removes the recipient as a friend, unless they are a best friend.
	option = {
		name = set_relationship_high_friend_remove
		trigger = {
			scope:actor = {
				any_relation = { type = friend this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = best_friend this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_friend = scope:recipient
		}
	}

	## Elevates the recipient to your most trusted companion.
	option = {
		name = set_relationship_high_best_friend_add
		trigger = {
			scope:actor = {
				can_set_relation_best_friend_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_best_friend = scope:recipient
		}
	}

	## Removes best friend status from the recipient.
	option = {
		name = set_relationship_high_best_friend_remove
		trigger = {
			scope:actor = {
				any_relation = { type = best_friend this = scope:recipient }
			}
		}
		scope:actor = {
			remove_relation_best_friend = scope:recipient
		}
	}

	## Enthralls the recipient in divine passion, making them your lover.
	option = {
		name = set_relationship_high_lover_add
		trigger = {
			scope:actor = {
				can_set_relation_lover_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_lover = {
				reason = lover_divine_high              ## "You have been chosen as a Divine Lover by a power beyond mortality."
				target = scope:recipient
			}
		}
	}

	## Removes the recipient as a lover, unless they are a soulmate.
	option = {
		name = set_relationship_high_lover_remove
		trigger = {
			scope:actor = {
				any_relation = { type = lover this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = soulmate this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_lover = scope:recipient
		}
	}

	## Binds the recipient to you as a celestial soulmate.
	option = {
		name = set_relationship_high_soulmate_add
		trigger = {
			scope:actor = {
				can_set_relation_soulmate_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_soulmate = {
				reason = soulmate_divine_high           ## "You are soul-bound by decree of a Supreme Being."
				copy_reason = lover
				target = scope:recipient
			}
		}
	}

	## Removes the soulmate bond between you and the recipient.
	option = {
		name = set_relationship_high_soulmate_remove
		trigger = {
			scope:actor = {
				any_relation = { type = soulmate this = scope:recipient }
			}
		}
		scope:actor = {
			remove_relation_soulmate = scope:recipient
		}
	}

	## Declares the recipient a cosmic rival in opposition to your divine will.
	option = {
		name = set_relationship_high_rival_add
		trigger = {
			scope:actor = {
				can_set_relation_rival_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_rival = {
				reason = rival_divine_high              ## "Your existence now stands opposed to the will of the Divine."
				target = scope:recipient
			}
		}
	}

	## Removes the recipient as a rival, unless they are your nemesis.
	option = {
		name = set_relationship_high_rival_remove
		trigger = {
			scope:actor = {
				any_relation = { type = rival this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = nemesis this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_rival = scope:recipient
		}
	}

	## Brands the recipient as an eternal nemesis to your divine power.
	option = {
		name = set_relationship_high_nemesis_add
		trigger = {
			scope:actor = {
				can_set_relation_nemesis_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_nemesis = {
				reason = nemesis_divine_high            ## "You have been condemned as a Nemesis to Heaven's design."
				target = scope:recipient
			}
		}
	}

	## Removes nemesis status from the recipient.
	option = {
		name = set_relationship_high_nemesis_remove
		trigger = {
			scope:actor = {
				any_relation = { type = nemesis this = scope:recipient }
			}
		}
		scope:actor = {
			remove_relation_nemesis = scope:recipient
		}
	}

	## Cancels the divine action with no effect.
	option = {
		name = set_relationship_high_nevermind        ## "Withdraw Decree"
	}
}


# Set relationship
divine_relationship_event.1112 = {
	type = character_event
	title = set_relationship_divine_name_low         ## "Whisper of Divinity"
	desc = set_relationship_divine_desc_low          ## "You subtly influence the threads of fate, guiding emotion and rivalry with sacred force."
	theme = default
	left_portrait = scope:recipient

	## Grants the recipient the favor of a god, becoming your companion.
	option = {
		name = set_relationship_low_friend_add        ## "Named Favored Companion"
		trigger = {
			scope:actor = {
				can_set_relation_friend_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_friend = {
				reason = friend_divine_low              ## "You have been marked as a Favored Companion by a divine force."
				target = scope:recipient
			}
		}
	}

	## Quietly removes the recipient from your companionship, unless they are a best friend.
	option = {
		name = set_relationship_low_friend_remove     ## "Blessing Withdrawn"
		trigger = {
			scope:actor = {
				any_relation = { type = friend this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = best_friend this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_friend = scope:recipient
		}
	}

	## Bestows divine affection, making the recipient your lover.
	option = {
		name = set_relationship_low_lover_add         ## "Blessed with Divine Affection"
		trigger = {
			scope:actor = {
				can_set_relation_lover_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_lover = {
				reason = lover_divine_low               ## "A god's affection now ties your heart in unseen bonds."
				target = scope:recipient
			}
		}
	}

	## Ends a romantic bond with the recipient, unless they are your soulmate.
	option = {
		name = set_relationship_low_lover_remove      ## "Affection Reclaimed"
		trigger = {
			scope:actor = {
				any_relation = { type = lover this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = soulmate this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_lover = scope:recipient
		}
	}

	## Marks the recipient as a divine rival in the current of fate.
	option = {
		name = set_relationship_low_rival_add         ## "Declared Lesser Rival"
		trigger = {
			scope:actor = {
				can_set_relation_rival_trigger = { CHARACTER = scope:recipient }
			}
		}
		scope:actor = {
			set_relation_rival = {
				reason = rival_divine_low               ## "Divine eyes have marked you as an opposing soul."
				target = scope:recipient
			}
		}
	}

	## Dissolves divine rivalry, unless the recipient is your nemesis.
	option = {
		name = set_relationship_low_rival_remove      ## "Rivalry Faded"
		trigger = {
			scope:actor = {
				any_relation = { type = rival this = scope:recipient }
			}
			NOT = {
				scope:actor = {
					any_relation = { type = nemesis this = scope:recipient }
				}
			}
		}
		scope:actor = {
			remove_relation_rival = scope:recipient
		}
	}

	## Takes no divine action and leaves fate untouched.
	option = {
		name = set_relationship_low_nevermind         ## "Remain Silent"
	}
}
