scripted triggers
This commit is contained in:
parent
134dc3348b
commit
648b12fbf0
29 changed files with 1559 additions and 1060 deletions
|
|
@ -80,16 +80,16 @@ courtier_allowed_to_leave_trigger = {
|
|||
has_character_flag = blocked_from_leaving
|
||||
is_councillor_of = scope:liege
|
||||
is_consort_of = scope:liege
|
||||
is_knight_of = scope:liege
|
||||
has_any_court_position = yes
|
||||
has_relation_lover = scope:liege
|
||||
is_tax_collector_of = scope:liege
|
||||
scope:liege = {
|
||||
player_heir_position = {
|
||||
target = scope:leaving_courtier
|
||||
value <= 2 #Not 1st, 2nd or 3rd player heir (0,1,2)
|
||||
}
|
||||
}
|
||||
has_any_court_position = yes
|
||||
has_relation_lover = scope:liege
|
||||
is_knight_of = scope:liege
|
||||
is_tax_collector_of = scope:liege
|
||||
any_relation = {
|
||||
type = ward
|
||||
OR = {
|
||||
|
|
@ -240,7 +240,12 @@ courtier_allowed_to_leave_trigger = {
|
|||
# Courtiers with sponsored inspirations won't leave on their own.
|
||||
inspiration ?= { exists = inspiration_sponsor }
|
||||
|
||||
scope:liege = { government_has_flag = government_is_landless_adventurer }
|
||||
scope:liege = {
|
||||
OR = {
|
||||
government_has_flag = government_is_landless_adventurer
|
||||
government_has_flag = government_is_merchant
|
||||
}
|
||||
}
|
||||
is_obedient_to = scope:liege
|
||||
|
||||
AND = {
|
||||
|
|
@ -400,35 +405,41 @@ can_recruit_character_to_court_trigger = {
|
|||
OR = {
|
||||
is_councillor_of = scope:recruitee.host
|
||||
is_knight_of = scope:recruitee.host
|
||||
any_relation = {
|
||||
type = ward
|
||||
custom_description = {
|
||||
text = can_recruit_character_to_court_employed_by_host
|
||||
subject = scope:recruitee
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
any_relation = {
|
||||
type = ward
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = guardian
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = mentor
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = student
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_court_position_employer = { this = scope:recruitee.host }
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = guardian
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = mentor
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_relation = {
|
||||
type = student
|
||||
OR = {
|
||||
this = scope:recruitee.host
|
||||
is_close_family_of = scope:recruitee.host
|
||||
}
|
||||
}
|
||||
any_court_position_employer = { this = scope:recruitee.host }
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
|
|
@ -640,9 +651,9 @@ useful_courtier_or_guest_claim_trigger = {
|
|||
}
|
||||
|
||||
neighboring_useful_courtier_or_guest_claim_trigger = {
|
||||
courtier_or_guest_claim_trigger = { RULER = $RULER$ }
|
||||
tier < $RULER$.highest_held_title_tier
|
||||
exists = $RULER$.capital_province
|
||||
courtier_or_guest_claim_trigger = { RULER = $RULER$ }
|
||||
holder = {
|
||||
any_sub_realm_county = {
|
||||
is_neighbor_to_realm = $RULER$
|
||||
|
|
@ -666,17 +677,17 @@ has_useful_potential_spouse_claim_trigger = {
|
|||
}
|
||||
|
||||
guest_knight_candidate_trigger = {
|
||||
can_be_knight_trigger = { ARMY_OWNER = $HOST$ }
|
||||
prowess > medium_skill_rating
|
||||
age < 60
|
||||
age >= 25
|
||||
prowess > medium_skill_rating
|
||||
can_be_knight_trigger = { ARMY_OWNER = $HOST$ }
|
||||
}
|
||||
|
||||
guest_commander_candidate_trigger = {
|
||||
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $HOST$ }
|
||||
martial > medium_skill_rating
|
||||
age < 60
|
||||
age >= 25
|
||||
martial > medium_skill_rating
|
||||
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $HOST$ }
|
||||
}
|
||||
|
||||
guest_vassal_candidate_good_traits_trigger = {
|
||||
|
|
@ -785,6 +796,8 @@ pool_character_is_pruneable_trigger = {
|
|||
has_trait = adventurer
|
||||
has_trait = historical_character
|
||||
has_character_flag = ai_will_not_convert
|
||||
has_character_flag = easteregg
|
||||
has_variable = merchant_var
|
||||
is_married = yes
|
||||
any_claim = { }
|
||||
any_child = { is_adult = no }
|
||||
|
|
@ -796,14 +809,10 @@ pool_character_is_pruneable_trigger = {
|
|||
type = friend
|
||||
is_ruler = yes
|
||||
}
|
||||
any_close_or_extended_family_member = { is_ruler = yes }
|
||||
#Belongs to a dynasty with more than 1 member
|
||||
any_relation = {
|
||||
type = rival
|
||||
is_ai = no
|
||||
}
|
||||
has_character_flag = easteregg
|
||||
has_variable = merchant_var
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
|
|
@ -816,6 +825,7 @@ pool_character_is_pruneable_trigger = {
|
|||
intrigue >= high_skill_rating
|
||||
learning >= high_skill_rating
|
||||
prowess >= high_skill_rating
|
||||
#Belongs to a dynasty with more than 1 member
|
||||
dynasty ?= { any_dynasty_member = { this != scope:pool_prune_check } }
|
||||
any_relation = {
|
||||
type = rival
|
||||
|
|
@ -829,6 +839,7 @@ pool_character_is_pruneable_trigger = {
|
|||
}
|
||||
}
|
||||
}
|
||||
NOT = { any_close_or_extended_family_member = { is_ruler = yes } }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue