413 lines
8.9 KiB
Text
413 lines
8.9 KiB
Text
# can_start_new_lifestyle_tree_trigger
|
|
# lifestyle_friend_trigger
|
|
|
|
|
|
can_start_new_lifestyle_tree_trigger = {
|
|
OR = {
|
|
NOR = {
|
|
has_perk = benevolent_intent_perk
|
|
has_perk = firm_hand_perk
|
|
}
|
|
has_perk = august_perk
|
|
has_focus_diplomacy = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = befriend_perk
|
|
has_perk = familial_familiar_perk
|
|
}
|
|
has_perk = family_man_perk
|
|
has_focus_diplomacy = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = thoughtful_perk }
|
|
has_perk = diplomat_perk
|
|
has_focus_diplomacy = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = dark_insights_perk
|
|
has_perk = dreadful_perk
|
|
}
|
|
has_perk = torturer_perk
|
|
has_focus_intrigue = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = truth_is_relative_perk }
|
|
has_perk = schemer_perk
|
|
has_focus_intrigue = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = like_weed_in_a_garden_perk
|
|
has_perk = enticing_opportunity_perk
|
|
}
|
|
has_perk = seducer_perk
|
|
has_focus_intrigue = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = anatomical_studies_perk }
|
|
has_perk = whole_of_body_perk
|
|
has_focus_learning = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = pedagogy_perk
|
|
has_perk = scientific_perk
|
|
}
|
|
has_perk = scholar_perk
|
|
has_focus_learning = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = faithful_perk }
|
|
has_perk = theologian_perk
|
|
has_focus_learning = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = stalwart_leader_perk }
|
|
has_perk = gallant_perk
|
|
has_focus_martial = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = serve_the_crown_perk }
|
|
has_perk = overseer_perk
|
|
has_focus_martial = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = bellum_justum_perk }
|
|
has_perk = strategist_perk
|
|
has_focus_martial = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = tax_man_perk
|
|
has_perk = cutting_corners_perk
|
|
}
|
|
has_perk = architect_perk
|
|
has_focus_stewardship = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = meritocracy_perk }
|
|
has_perk = administrator_perk
|
|
has_focus_stewardship = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = golden_obligations_perk }
|
|
has_perk = avaricious_perk
|
|
has_focus_stewardship = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = mustering_the_troops_perk }
|
|
has_perk = surveyor_perk
|
|
has_focus_wanderer = no
|
|
}
|
|
OR = {
|
|
NOT = { has_perk = well_prepared_perk }
|
|
has_perk = wayfarer_perk
|
|
has_focus_wanderer = no
|
|
}
|
|
OR = {
|
|
NOR = {
|
|
has_perk = power_at_home_perk
|
|
has_perk = mercenary_contacts_perk
|
|
}
|
|
has_perk = voyager_perk
|
|
has_focus_wanderer = no
|
|
}
|
|
}
|
|
|
|
has_completed_current_lifestyle_trigger = {
|
|
OR = {
|
|
AND = {
|
|
OR = {
|
|
has_focus = diplomacy_foreign_affairs_focus
|
|
has_focus = diplomacy_majesty_focus
|
|
has_focus = diplomacy_family_focus
|
|
}
|
|
has_perk = august_perk
|
|
has_perk = family_man_perk
|
|
has_perk = diplomat_perk
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = intrigue_skulduggery_focus
|
|
has_focus = intrigue_temptation_focus
|
|
has_focus = intrigue_intimidation_focus
|
|
}
|
|
has_perk = torturer_perk
|
|
has_perk = schemer_perk
|
|
has_perk = seducer_perk
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = learning_medicine_focus
|
|
has_focus = learning_scholarship_focus
|
|
has_focus = learning_theology_focus
|
|
}
|
|
has_perk = whole_of_body_perk
|
|
has_perk = scholar_perk
|
|
has_perk = theologian_perk
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = martial_strategy_focus
|
|
has_focus = martial_authority_focus
|
|
has_focus = martial_chivalry_focus
|
|
}
|
|
has_perk = gallant_perk
|
|
has_perk = overseer_perk
|
|
has_perk = strategist_perk
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = stewardship_wealth_focus
|
|
has_focus = stewardship_domain_focus
|
|
has_focus = stewardship_duty_focus
|
|
}
|
|
has_perk = architect_perk
|
|
has_perk = administrator_perk
|
|
has_perk = avaricious_perk
|
|
}
|
|
}
|
|
}
|
|
|
|
has_completed_one_tree_in_current_lifestyle_trigger = {
|
|
OR = {
|
|
AND = {
|
|
OR = {
|
|
has_focus = diplomacy_foreign_affairs_focus
|
|
has_focus = diplomacy_majesty_focus
|
|
has_focus = diplomacy_family_focus
|
|
}
|
|
OR = {
|
|
has_perk = august_perk
|
|
has_perk = family_man_perk
|
|
has_perk = diplomat_perk
|
|
}
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = intrigue_skulduggery_focus
|
|
has_focus = intrigue_temptation_focus
|
|
has_focus = intrigue_intimidation_focus
|
|
}
|
|
OR = {
|
|
has_perk = torturer_perk
|
|
has_perk = schemer_perk
|
|
has_perk = seducer_perk
|
|
}
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = learning_medicine_focus
|
|
has_focus = learning_scholarship_focus
|
|
has_focus = learning_theology_focus
|
|
}
|
|
OR = {
|
|
has_perk = whole_of_body_perk
|
|
has_perk = scholar_perk
|
|
has_perk = theologian_perk
|
|
}
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = martial_strategy_focus
|
|
has_focus = martial_authority_focus
|
|
has_focus = martial_chivalry_focus
|
|
}
|
|
OR = {
|
|
has_perk = gallant_perk
|
|
has_perk = overseer_perk
|
|
has_perk = strategist_perk
|
|
}
|
|
}
|
|
AND = {
|
|
OR = {
|
|
has_focus = stewardship_wealth_focus
|
|
has_focus = stewardship_domain_focus
|
|
has_focus = stewardship_duty_focus
|
|
}
|
|
OR = {
|
|
has_perk = architect_perk
|
|
has_perk = administrator_perk
|
|
has_perk = avaricious_perk
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
##############################
|
|
# LIFESTYLE FRIEND TRIGGERS
|
|
##############################
|
|
|
|
#Trigger to check if a friend is a lifestyle friend
|
|
lifestyle_friend_trigger = {
|
|
trigger_if = {
|
|
limit = { $CHARACTER$ = { is_ai = yes } }
|
|
OR = {
|
|
has_focus = $FOCUS$
|
|
is_ruler = no
|
|
}
|
|
}
|
|
#If a player, check the friend points
|
|
trigger_else = {
|
|
$FOCUS$_friend_points > 0
|
|
}
|
|
}
|
|
|
|
#Is the character available as a potential lifestyle friend for CHARACTER
|
|
potential_lifestyle_friend_availability_trigger = {
|
|
lifestyle_friend_trigger = { CHARACTER = $CHARACTER$ FOCUS = $FOCUS$ }
|
|
basic_is_available_ai = yes
|
|
NOR = {
|
|
has_relation_friend = $CHARACTER$
|
|
has_relation_rival = $CHARACTER$
|
|
is_at_war_with = $CHARACTER$
|
|
}
|
|
is_adult = yes
|
|
opinion = {
|
|
target = $CHARACTER$
|
|
value >= low_negative_opinion
|
|
}
|
|
save_temporary_scope_value_as = {
|
|
name = trigger_focus
|
|
value = flag:$FOCUS$
|
|
}
|
|
trigger_if = {
|
|
limit = { scope:trigger_focus = flag:intrigue_temptation_focus }
|
|
NOT = {
|
|
dislikes_partner_cheating_trigger = { PARTNER = $CHARACTER$ }
|
|
}
|
|
}
|
|
}
|
|
|
|
has_focus_martial = {
|
|
OR = {
|
|
has_focus = martial_chivalry_focus
|
|
has_focus = martial_authority_focus
|
|
has_focus = martial_strategy_focus
|
|
has_focus = martial_adventurer_focus
|
|
}
|
|
}
|
|
|
|
has_focus_learning = {
|
|
OR = {
|
|
has_focus = learning_theology_focus
|
|
has_focus = learning_scholarship_focus
|
|
has_focus = learning_medicine_focus
|
|
has_focus = learning_adventurer_focus
|
|
}
|
|
}
|
|
|
|
has_focus_intrigue = {
|
|
OR = {
|
|
has_focus = intrigue_intimidation_focus
|
|
has_focus = intrigue_temptation_focus
|
|
has_focus = intrigue_skulduggery_focus
|
|
has_focus = intrigue_adventurer_focus
|
|
}
|
|
}
|
|
|
|
has_focus_diplomacy = {
|
|
OR = {
|
|
has_focus = diplomacy_family_focus
|
|
has_focus = diplomacy_majesty_focus
|
|
has_focus = diplomacy_foreign_affairs_focus
|
|
has_focus = diplomacy_adventurer_focus
|
|
}
|
|
}
|
|
|
|
has_focus_stewardship = {
|
|
OR = {
|
|
has_focus = stewardship_domain_focus
|
|
has_focus = stewardship_wealth_focus
|
|
has_focus = stewardship_duty_focus
|
|
has_focus = stewardship_adventurer_focus
|
|
}
|
|
}
|
|
|
|
has_focus_wanderer = {
|
|
OR = {
|
|
has_focus = wanderer_internal_affairs_focus
|
|
has_focus = wanderer_journey_focus
|
|
has_focus = wanderer_destination_focus
|
|
}
|
|
}
|
|
|
|
|
|
#######################
|
|
# misc
|
|
#######################
|
|
|
|
has_focus_or_focus_trait_trigger = {
|
|
save_temporary_scope_value_as = {
|
|
name = trigger_focus
|
|
value = flag:$FOCUS$
|
|
}
|
|
OR = {
|
|
has_focus = $FOCUS$
|
|
trigger_if = {
|
|
limit = { scope:trigger_focus = flag:diplomacy_foreign_affairs_focus }
|
|
has_trait = diplomat
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:diplomacy_majesty_focus }
|
|
has_trait = august
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:diplomacy_family_focus }
|
|
has_trait = family_first
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:martial_strategy_focus }
|
|
has_trait = strategist
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:martial_authority_focus }
|
|
has_trait = overseer
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:martial_chivalry_focus }
|
|
has_trait = gallant
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:stewardship_wealth_focus }
|
|
has_trait = avaricious
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:stewardship_domain_focus }
|
|
has_trait = architect
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:stewardship_duty_focus }
|
|
has_trait = administrator
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:intrigue_skulduggery_focus }
|
|
has_trait = schemer
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:intrigue_temptation_focus }
|
|
has_trait = seducer
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:intrigue_intimidation_focus }
|
|
has_trait = torturer
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:learning_medicine_focus }
|
|
has_trait = whole_of_body
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:learning_scholarship_focus }
|
|
has_trait = scholar
|
|
}
|
|
trigger_else_if = {
|
|
limit = { scope:trigger_focus = flag:learning_theology_focus }
|
|
has_trait = theologian
|
|
}
|
|
trigger_else = {
|
|
always = no
|
|
}
|
|
}
|
|
}
|