﻿take_a_note_interaction = {
	category = interaction_category_friendly
	desc = take_a_note_interaction_desc
	interface_priority = 150
	common_interaction = yes
	icon = icon_contract_modification_single
		
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	send_name = take_a_note_interaction_send
	
	can_send_despite_rejection = yes
	can_send = {
		OR = {
		always = scope:note_custom_note
		always = scope:dont_remind_me_of_notes
		always = scope:note_keep_an_eye_on
		always = scope:note_good_spouse_candidate
		always = scope:note_good_councillor
		always = scope:note_should_invite_to_court
		always = scope:note_good_knight
		always = scope:note_potential_war_target
		always = scope:note_exposed_my_secret
		always = scope:note_hostile_scheme_against_me
		always = scope:note_should_eliminate
		always = scope:note_troublesome_vassal
		always = scope:note_interesting_claimant
		always = scope:note_harmed_me
		always = scope:note_legitimized_me
		always = scope:note_took_me_as_concubine
		always = scope:note_was_key_on_my_excommunication
		always = scope:note_broken_betrothal
		}
	}
	
	is_shown = {
		NOT = { scope:recipient = scope:actor }
		}
	
	auto_accept = yes
	
	# Send Options
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}
		flag = note_custom_note
		localization = "NOTE_CUSTOM_NOTE"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}
		flag = note_keep_an_eye_on
		localization = "NOTE_KEEP_EYE_ON"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {NOT = {is_consort_of = scope:actor}}
			}
			
		flag = note_good_spouse_candidate
		localization = "NOTE_GOOD_SPOUSE_CANDIDATE"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {NOT = {is_councillor_of = scope:actor}}
			}

		flag = note_good_councillor
		localization = "NOTE_GOOD_COUNCILLOR"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {NOR = {
		is_ruler = yes
		is_courtier_of = scope:actor}}
			}

		flag = note_should_invite_to_court
		localization = "NOTE_INVITE_TO_COURT"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {NOR = {
		is_independent_ruler = yes
		is_knight_of = scope:actor}}
			}

		flag = note_good_knight
		localization = "NOTE_GOOD_KNIGHT"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {is_ruler = yes}
			}

		flag = note_potential_war_target
		localization = "NOTE_POTENTIAL_WAR_TARGET"
	}
	## secret
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		
			}
		flag = note_exposed_my_secret
		localization = "NOTE_EXPOSED_MY_SECRET" 
	}
	## scheme
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_hostile_scheme_against_me
		localization = "NOTE_SCHEMED_AGAINST_ME"
	}
	
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_should_eliminate
		localization = "NOTE_SHOULD_ELIMINATE"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {is_vassal_or_below_of = scope:actor}
			}

		flag = note_troublesome_vassal
		localization = "NOTE_TROUBLESOME_VASSAL"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_interesting_claimant
		localization = "NOTE_INTERESTING_CLAIMANT"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_harmed_me
		localization = "NOTE_HARMED_ME"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
		scope:actor = {has_trait = legitimized_bastard}
			}

		flag = note_legitimized_me
		localization = "NOTE_LEGITIMIZED_ME"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_took_me_as_concubine
		localization = "NOTE_TOOK_ME_AS_CONCUBINE"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_was_key_on_my_excommunication
		localization = "NOTE_KEY_ON_EXCOMMUNICATION"
	}
	send_option = {
		is_shown = {
		NOT = {always = scope:dont_remind_me_of_notes}
			}

		flag = note_broken_betrothal
		localization = "NOTE_BROKEN_BETROTHAL"
	}
	
	## delete reminder
	send_option = {
		is_shown = {
		scope:recipient = {has_character_flag = had_note_taken}
			}

		flag = dont_remind_me_of_notes
		localization = "NOTE_DONT_REMIND_ME"
	}

	send_options_exclusive = yes
	
	on_accept = {
	if = {
		limit = {NOR = {
		always = scope:note_custom_note
		always = scope:dont_remind_me_of_notes}}
		scope:recipient = {
		
			custom_tooltip = {
				text = "take_a_note_interaction_desc"
				add_character_flag = {
					flag = had_note_taken
					years = 5
					}
			}
			}}
		if = {
		limit = {always = scope:dont_remind_me_of_notes}
		scope:recipient = {
			custom_tooltip = {
				text = "wont_be_reminded_of_previous_notes_desc"
				remove_character_flag = had_note_taken
				remove_localized_text = test_saved_text}
			}
		scope:actor = {
		random_memory = {
					limit = {
				has_memory_type = note_exposed_my_secret
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_exposed_my_secret_to_erase
			}
			if = {
			limit = {exists = scope:note_exposed_my_secret_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_exposed_my_secret_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_hostile_scheme_against_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_hostile_scheme_against_me_to_erase
			}
		if = {
			limit = {exists = scope:note_hostile_scheme_against_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_hostile_scheme_against_me_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_keep_an_eye_on
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_keep_an_eye_on_to_erase
			}
		if = {
			limit = {exists = scope:note_keep_an_eye_on_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_keep_an_eye_on_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_spouse_candidate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_spouse_candidate_to_erase
			}
		if = {
			limit = {exists = scope:note_good_spouse_candidate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_spouse_candidate_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_councillor
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_councillor_to_erase
			}
		if = {
			limit = {exists = scope:note_good_councillor_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_councillor_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_should_invite_to_court
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_invite_to_court_to_erase
			}
		if = {
			limit = {exists = scope:note_should_invite_to_court_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_invite_to_court_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_knight
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_knight_to_erase
			}
		if = {
			limit = {exists = scope:note_good_knight_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_knight_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_potential_war_target
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_potential_war_target_to_erase
			}
		if = {
			limit = {exists = scope:note_potential_war_target_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_potential_war_target_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_should_eliminate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_eliminate_to_erase
			}
		if = {
			limit = {exists = scope:note_should_eliminate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_eliminate_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_troublesome_vassal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_troublesome_vassal_to_erase
			}
		if = {
			limit = {exists = scope:note_troublesome_vassal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_troublesome_vassal_to_erase}
			}	
		random_memory = {
					limit = {
				has_memory_type = note_interesting_claimant
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_interesting_claimant_to_erase
			}
		if = {
			limit = {exists = scope:note_interesting_claimant_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_interesting_claimant_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_harmed_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_harmed_me_to_erase
			}
		if = {
			limit = {exists = scope:note_harmed_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_harmed_me_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_legitimized_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_legitimized_me_to_erase
			}
		if = {
			limit = {exists = scope:note_legitimized_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_legitimized_me_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_took_me_as_concubine
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_took_me_as_concubine_to_erase
			}
		if = {
			limit = {exists = scope:note_took_me_as_concubine_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_took_me_as_concubine_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_was_key_on_my_excommunication
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_was_key_on_my_excommunication_to_erase
			}
		if = {
			limit = {exists = scope:note_was_key_on_my_excommunication_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_was_key_on_my_excommunication_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_broken_betrothal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_broken_betrothal_to_erase
			}
		if = {
			limit = {exists = scope:note_broken_betrothal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_broken_betrothal_to_erase}
			}}		
		scope:recipient = {
		random_memory = {
					limit = {
				has_memory_type = note_exposed_my_secret
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_exposed_my_secret_to_erase
			}
		if = {
			limit = {exists = scope:note_exposed_my_secret_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_exposed_my_secret_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_hostile_scheme_against_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_hostile_scheme_against_me_to_erase
			}
		if = {
			limit = {exists = scope:note_hostile_scheme_against_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_hostile_scheme_against_me_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_keep_an_eye_on
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_keep_an_eye_on_to_erase
			}
		if = {
			limit = {exists = scope:note_keep_an_eye_on_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_keep_an_eye_on_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_spouse_candidate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_spouse_candidate_to_erase
			}
		if = {
			limit = {exists = scope:note_good_spouse_candidate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_spouse_candidate_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_councillor
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_councillor_to_erase
			}
		if = {
			limit = {exists = scope:note_good_councillor_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_councillor_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_should_invite_to_court
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_invite_to_court_to_erase
			}
		if = {
			limit = {exists = scope:note_should_invite_to_court_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_invite_to_court_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_good_knight
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_knight_to_erase
			}
		if = {
			limit = {exists = scope:note_good_knight_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_knight_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_potential_war_target
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_potential_war_target_to_erase
			}
		if = {
			limit = {exists = scope:note_potential_war_target_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_potential_war_target_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_should_eliminate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_eliminate_to_erase
			}
		if = {
			limit = {exists = scope:note_should_eliminate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_eliminate_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_troublesome_vassal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_troublesome_vassal_to_erase
			}
		if = {
			limit = {exists = scope:note_troublesome_vassal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_troublesome_vassal_to_erase}
			}	
		random_memory = {
					limit = {
				has_memory_type = note_interesting_claimant
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_interesting_claimant_to_erase
			}
		if = {
			limit = {exists = scope:note_interesting_claimant_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_interesting_claimant_to_erase}
			}		
		random_memory = {
					limit = {
				has_memory_type = note_harmed_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_harmed_me_to_erase
			}
		if = {
			limit = {exists = scope:note_harmed_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_harmed_me_to_erase}
			}		
		random_memory = {
					limit = {
				has_memory_type = note_legitimized_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_legitimized_me_to_erase
			}
		if = {
			limit = {exists = scope:note_legitimized_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_legitimized_me_to_erase}
			}	
		random_memory = {
					limit = {
				has_memory_type = note_took_me_as_concubine
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_took_me_as_concubine_to_erase
			}
		if = {
			limit = {exists = scope:note_took_me_as_concubine_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_took_me_as_concubine_to_erase}
			}	
		random_memory = {
					limit = {
				has_memory_type = note_was_key_on_my_excommunication
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_was_key_on_my_excommunication_to_erase
			}
		if = {
			limit = {exists = scope:note_was_key_on_my_excommunication_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_was_key_on_my_excommunication_to_erase}
			}
		random_memory = {
					limit = {
				has_memory_type = note_broken_betrothal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_broken_betrothal_to_erase
			}
		if = {
			limit = {exists = scope:note_broken_betrothal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_broken_betrothal_to_erase}
			}}	
			
		}
		scope:actor = {
		if = {
			limit = {always = scope:note_exposed_my_secret}
				random_memory = {
					limit = {
				has_memory_type = note_exposed_my_secret
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_exposed_my_secret_to_erase
			}
		if = {
			limit = {exists = scope:note_exposed_my_secret_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_exposed_my_secret_to_erase}
			}
	
				create_character_memory = {
				type = note_exposed_my_secret
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_hostile_scheme_against_me}
				random_memory = {
					limit = {
				has_memory_type = note_hostile_scheme_against_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_hostile_scheme_against_me_to_erase
			}
		if = {
			limit = {exists = scope:note_hostile_scheme_against_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_hostile_scheme_against_me_to_erase}
			}
	
				create_character_memory = {
				type = note_hostile_scheme_against_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_keep_an_eye_on}
				random_memory = {
					limit = {
				has_memory_type = note_keep_an_eye_on
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_keep_an_eye_on_to_erase
			}
		if = {
			limit = {exists = scope:note_keep_an_eye_on_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_keep_an_eye_on_to_erase}
			}
	
				create_character_memory = {
				type = note_keep_an_eye_on
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_spouse_candidate}
				random_memory = {
					limit = {
				has_memory_type = note_good_spouse_candidate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_spouse_candidate_to_erase
			}
		if = {
			limit = {exists = scope:note_good_spouse_candidate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_spouse_candidate_to_erase}
			}
	
				create_character_memory = {
				type = note_good_spouse_candidate
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_councillor}
				random_memory = {
					limit = {
				has_memory_type = note_good_councillor
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_councillor_to_erase
			}
		if = {
			limit = {exists = scope:note_good_councillor_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_councillor_to_erase}
			}
	
				create_character_memory = {
				type = note_good_councillor
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_should_invite_to_court}
				random_memory = {
					limit = {
				has_memory_type = note_should_invite_to_court
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_invite_to_court_to_erase
			}
		if = {
			limit = {exists = scope:note_should_invite_to_court_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_invite_to_court_to_erase}
			}
	
				create_character_memory = {
				type = note_should_invite_to_court
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_knight}
				random_memory = {
					limit = {
				has_memory_type = note_good_knight
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_knight_to_erase
			}
		if = {
			limit = {exists = scope:note_good_knight_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_knight_to_erase}
			}
	
				create_character_memory = {
				type = note_good_knight
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_potential_war_target}
				random_memory = {
					limit = {
				has_memory_type = note_potential_war_target
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_potential_war_target_to_erase
			}
		if = {
			limit = {exists = scope:note_potential_war_target_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_potential_war_target_to_erase}
			}
	
				create_character_memory = {
				type = note_potential_war_target
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_should_eliminate}
				random_memory = {
					limit = {
				has_memory_type = note_should_eliminate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_eliminate_to_erase
			}
		if = {
			limit = {exists = scope:note_should_eliminate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_eliminate_to_erase}
			}
	
				create_character_memory = {
				type = note_should_eliminate
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_troublesome_vassal}
				random_memory = {
					limit = {
				has_memory_type = note_troublesome_vassal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_troublesome_vassal_to_erase
			}
		if = {
			limit = {exists = scope:note_troublesome_vassal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_troublesome_vassal_to_erase}
			}
	
				create_character_memory = {
				type = note_troublesome_vassal
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_interesting_claimant}
				random_memory = {
					limit = {
				has_memory_type = note_interesting_claimant
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_interesting_claimant_to_erase
			}
		if = {
			limit = {exists = scope:note_interesting_claimant_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_interesting_claimant_to_erase}
			}
	
				create_character_memory = {
				type = note_interesting_claimant
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_harmed_me}
				random_memory = {
					limit = {
				has_memory_type = note_harmed_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_harmed_me_to_erase
			}
		if = {
			limit = {exists = scope:note_harmed_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_harmed_me_to_erase}
			}
	
				create_character_memory = {
				type = note_harmed_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_legitimized_me}
				random_memory = {
					limit = {
				has_memory_type = note_legitimized_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_legitimized_me_to_erase
			}
		if = {
			limit = {exists = scope:note_legitimized_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_legitimized_me_to_erase}
			}
				create_character_memory = {
				type = note_legitimized_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_took_me_as_concubine}
				random_memory = {
					limit = {
				has_memory_type = note_took_me_as_concubine
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_took_me_as_concubine_to_erase
			}
		if = {
			limit = {exists = scope:note_took_me_as_concubine_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_took_me_as_concubine_to_erase}
			}
	
				create_character_memory = {
				type = note_took_me_as_concubine
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_was_key_on_my_excommunication}
				random_memory = {
					limit = {
				has_memory_type = note_was_key_on_my_excommunication
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_was_key_on_my_excommunication_to_erase
			}
		if = {
			limit = {exists = scope:note_was_key_on_my_excommunication_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_was_key_on_my_excommunication_to_erase}
			}
	
				create_character_memory = {
				type = note_was_key_on_my_excommunication
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_broken_betrothal}
				random_memory = {
					limit = {
				has_memory_type = note_broken_betrothal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_broken_betrothal_to_erase
			}
		if = {
			limit = {exists = scope:note_broken_betrothal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_broken_betrothal_to_erase}
			}
	
				create_character_memory = {
				type = note_broken_betrothal
				participants = {
				note_target = scope:recipient
					}
				}	
			}}	
		scope:recipient = {
		if = {
			limit = {always = scope:note_custom_note}
			custom_tooltip = {
				text = "take_custom_note_desc"
			}
	scope:actor = {trigger_event = take_note.0001}	
			}
		if = {
			limit = {always = scope:note_exposed_my_secret}
				random_memory = {
					limit = {
				has_memory_type = note_exposed_my_secret
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_exposed_my_secret_to_erase
			}
		if = {
			limit = {exists = scope:note_exposed_my_secret_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_exposed_my_secret_to_erase}
			}
				create_character_memory = {
				type = note_exposed_my_secret
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_hostile_scheme_against_me}
				random_memory = {
					limit = {
				has_memory_type = note_hostile_scheme_against_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_hostile_scheme_against_me_to_erase
			}
		if = {
			limit = {exists = scope:note_hostile_scheme_against_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_hostile_scheme_against_me_to_erase}
			}
	
				create_character_memory = {
				type = note_hostile_scheme_against_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_keep_an_eye_on}
				random_memory = {
					limit = {
				has_memory_type = note_keep_an_eye_on
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_keep_an_eye_on_to_erase
			}
		if = {
			limit = {exists = scope:note_keep_an_eye_on_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_keep_an_eye_on_to_erase}
			}
	
				create_character_memory = {
				type = note_keep_an_eye_on
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_spouse_candidate}
				random_memory = {
					limit = {
				has_memory_type = note_good_spouse_candidate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_spouse_candidate_to_erase
			}
		if = {
			limit = {exists = scope:note_good_spouse_candidate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_spouse_candidate_to_erase}
			}
	
				create_character_memory = {
				type = note_good_spouse_candidate
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_councillor}
				random_memory = {
					limit = {
				has_memory_type = note_good_councillor
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_councillor_to_erase
			}
		if = {
			limit = {exists = scope:note_good_councillor_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_councillor_to_erase}
			}
	
				create_character_memory = {
				type = note_good_councillor
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_should_invite_to_court}
				random_memory = {
					limit = {
				has_memory_type = note_should_invite_to_court
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_invite_to_court_to_erase
			}
		if = {
			limit = {exists = scope:note_should_invite_to_court_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_invite_to_court_to_erase}
			}
	
				create_character_memory = {
				type = note_should_invite_to_court
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_good_knight}
				random_memory = {
					limit = {
				has_memory_type = note_good_knight
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_good_knight_to_erase
			}
		if = {
			limit = {exists = scope:note_good_knight_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_good_knight_to_erase}
			}
	
				create_character_memory = {
				type = note_good_knight
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_potential_war_target}
				random_memory = {
					limit = {
				has_memory_type = note_potential_war_target
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_potential_war_target_to_erase
			}
		if = {
			limit = {exists = scope:note_potential_war_target_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_potential_war_target_to_erase}
			}
	
				create_character_memory = {
				type = note_potential_war_target
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_should_eliminate}
				random_memory = {
					limit = {
				has_memory_type = note_should_eliminate
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_should_eliminate_to_erase
			}
		if = {
			limit = {exists = scope:note_should_eliminate_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_should_eliminate_to_erase}
			}
	
				create_character_memory = {
				type = note_should_eliminate
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_troublesome_vassal}
				random_memory = {
					limit = {
				has_memory_type = note_troublesome_vassal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_troublesome_vassal_to_erase
			}
		if = {
			limit = {exists = scope:note_troublesome_vassal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_troublesome_vassal_to_erase}
			}
	
				create_character_memory = {
				type = note_troublesome_vassal
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_interesting_claimant}
				random_memory = {
					limit = {
				has_memory_type = note_interesting_claimant
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_interesting_claimant_to_erase
			}
		if = {
			limit = {exists = scope:note_interesting_claimant_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_interesting_claimant_to_erase}
			}
	
				create_character_memory = {
				type = note_interesting_claimant
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_harmed_me}
				random_memory = {
					limit = {
				has_memory_type = note_harmed_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_harmed_me_to_erase
			}
		if = {
			limit = {exists = scope:note_harmed_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_harmed_me_to_erase}
			}
	
				create_character_memory = {
				type = note_harmed_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_legitimized_me}
				random_memory = {
					limit = {
				has_memory_type = note_legitimized_me
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_legitimized_me_to_erase
			}
		if = {
			limit = {exists = scope:note_legitimized_me_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_legitimized_me_to_erase}
			}
	
				create_character_memory = {
				type = note_legitimized_me
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_took_me_as_concubine}
				random_memory = {
					limit = {
				has_memory_type = note_took_me_as_concubine
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_took_me_as_concubine_to_erase
			}
		if = {
			limit = {exists = scope:note_took_me_as_concubine_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_took_me_as_concubine_to_erase}
			}
	
				create_character_memory = {
				type = note_took_me_as_concubine
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_was_key_on_my_excommunication}
				random_memory = {
					limit = {
				has_memory_type = note_was_key_on_my_excommunication
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_was_key_on_my_excommunication_to_erase
			}
		if = {
			limit = {exists = scope:note_was_key_on_my_excommunication_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_was_key_on_my_excommunication_to_erase}
			}
	
				create_character_memory = {
				type = note_was_key_on_my_excommunication
				participants = {
				note_target = scope:recipient
					}
				}	
			}
		if = {
			limit = {always = scope:note_broken_betrothal}
				random_memory = {
					limit = {
				has_memory_type = note_broken_betrothal
				has_memory_participant = scope:recipient
			}
			save_temporary_scope_as = note_broken_betrothal_to_erase
			}
		if = {
			limit = {exists = scope:note_broken_betrothal_to_erase}
			hidden_effect = {
				destroy_character_memory = scope:note_broken_betrothal_to_erase}
			}
	
				create_character_memory = {
				type = note_broken_betrothal
				participants = {
				note_target = scope:recipient
					}
				}	
			}}
		
		
	}
	ai_will_do = {
		base = 0
		}
}