# Scripted Triggers for BP2 related things # Trigger to find a random appropriate educator for a child is_relevant_to_child = { is_available_ai_adult = yes #location = $CHILD$.location } has_level_1_education_trait_trigger = { OR = { has_trait = education_diplomacy_1 has_trait = education_martial_1 has_trait = education_stewardship_1 has_trait = education_intrigue_1 has_trait = education_learning_1 } } has_level_2_education_trait_trigger = { OR = { has_trait = education_diplomacy_2 has_trait = education_martial_2 has_trait = education_stewardship_2 has_trait = education_intrigue_2 has_trait = education_learning_2 } } has_level_3_education_trait_trigger = { OR = { has_trait = education_diplomacy_3 has_trait = education_martial_3 has_trait = education_stewardship_3 has_trait = education_intrigue_3 has_trait = education_learning_3 } } has_level_4_education_trait_trigger = { OR = { has_trait = education_diplomacy_4 has_trait = education_martial_4 has_trait = education_stewardship_4 has_trait = education_intrigue_4 has_trait = education_learning_4 } } style_changing_reformer_trigger = { OR = { root.top_liege ?= { has_character_flag = $FLAG$ } AND = { has_variable = years_as_varangian has_character_flag = $FLAG$ is_landed = no } } } hostage_oath_of_friendship_trigger = { AND = { OR = { has_relation_friend = scope:recipient has_relation_best_friend = scope:recipient } OR = { scope:actor = { any_memory = { has_memory_type = hostage_oath_of_friendship has_memory_participant = scope:recipient } } scope:recipient = { any_memory = { has_memory_type = hostage_oath_of_friendship has_memory_participant = scope:actor } } } } }