scripted triggers
This commit is contained in:
parent
134dc3348b
commit
648b12fbf0
29 changed files with 1559 additions and 1060 deletions
|
|
@ -29,11 +29,11 @@ ai_has_pious_builder_personality = {
|
|||
}
|
||||
#Or our Devaraja decrees it
|
||||
AND = {
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_pious }
|
||||
OR = {
|
||||
is_tributary = yes
|
||||
is_independent_ruler = no
|
||||
}
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_pious }
|
||||
}
|
||||
#Weight the AI according to their Aspect
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
|
||||
|
|
@ -53,25 +53,6 @@ ai_has_pious_builder_personality = {
|
|||
|
||||
ai_has_warlike_personality = {
|
||||
OR = {
|
||||
vassal_contract_has_flag = admin_ai_is_warlike # Admin vassals with the "Frontier" administration consider it their job to expand
|
||||
house ?= { # The unity decision "Organize House Members for War" forces AI house members to adopt this stance
|
||||
has_house_modifier = unity_house_organized_for_war_modifier
|
||||
}
|
||||
AND = { # They are Detractors during the FP3 Struggle in the Unrest Phase
|
||||
any_character_struggle = {
|
||||
trigger_if = {
|
||||
limit = { is_struggle_type = persian_struggle }
|
||||
is_struggle_phase = struggle_persia_phase_unrest
|
||||
}
|
||||
trigger_else = { always = no }
|
||||
}
|
||||
has_trait = fp3_struggle_detractor
|
||||
}
|
||||
AND = { # Nomads are not 'unpredictable', they are Warlike instead
|
||||
government_has_flag = government_is_nomadic
|
||||
ai_has_cautious_personality = no
|
||||
economical_ai_guts_trigger = no
|
||||
}
|
||||
AND = {
|
||||
ai_boldness > 0
|
||||
ai_greed >= 0
|
||||
|
|
@ -117,11 +98,11 @@ ai_has_warlike_personality = {
|
|||
has_variable = imperial_expedition_charged
|
||||
#Or our Devaraja decrees it
|
||||
AND = {
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_warlike }
|
||||
OR = {
|
||||
is_tributary = yes
|
||||
is_independent_ruler = no
|
||||
}
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_warlike }
|
||||
}
|
||||
#Weight the AI according to their Aspect
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_destruction }
|
||||
|
|
@ -170,6 +151,7 @@ ai_has_cautious_personality = {
|
|||
}
|
||||
}
|
||||
AND = { # They are Detractors during the FP3 Struggle in the Unrest Phase
|
||||
has_trait = fp3_struggle_detractor
|
||||
any_character_struggle = {
|
||||
trigger_if = {
|
||||
limit = { is_struggle_type = persian_struggle }
|
||||
|
|
@ -177,7 +159,6 @@ ai_has_cautious_personality = {
|
|||
}
|
||||
trigger_else = { always = no }
|
||||
}
|
||||
has_trait = fp3_struggle_detractor
|
||||
}
|
||||
vassal_contract_has_flag = admin_ai_is_warlike
|
||||
vassal_contract_has_flag = admin_ai_is_builder
|
||||
|
|
@ -199,11 +180,11 @@ ai_has_economical_boom_personality = {
|
|||
}
|
||||
#Or our Devaraja decrees it
|
||||
AND = {
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_economical }
|
||||
OR = {
|
||||
is_tributary = yes
|
||||
is_independent_ruler = no
|
||||
}
|
||||
overlord ?= { has_realm_law_flag = subjects_appear_more_economical }
|
||||
}
|
||||
#Weight the AI according to their Aspect
|
||||
house ?= { has_house_aspiration_parameter = aspect_of_creation }
|
||||
|
|
@ -270,7 +251,7 @@ economical_ai_guts_trigger = {
|
|||
}
|
||||
|
||||
ai_wants_low_unity = {
|
||||
government_has_flag = government_is_clan
|
||||
government_has_flag = government_uses_house_unity
|
||||
# To actively decrease Unity, the AI needs the following personality
|
||||
OR = {
|
||||
AND = {
|
||||
|
|
@ -288,7 +269,7 @@ ai_wants_low_unity = {
|
|||
}
|
||||
|
||||
ai_wants_high_unity = {
|
||||
government_has_flag = government_is_clan
|
||||
government_has_flag = government_uses_house_unity
|
||||
# We'll make sure that the AI only wants to actively increase Unity if they have a matching personality
|
||||
OR = {
|
||||
AND = {
|
||||
|
|
@ -333,6 +314,7 @@ ai_should_get_conqueror_bonuses = {
|
|||
}
|
||||
|
||||
ai_should_get_extreme_conqueror_bonuses = {
|
||||
is_alive = yes
|
||||
has_variable = conqueror
|
||||
has_character_modifier = ai_extreme_conqueror_modifier
|
||||
}
|
||||
|
|
@ -346,21 +328,23 @@ ai_should_focus_on_building_in_their_capital = {
|
|||
exists = culture
|
||||
OR = {
|
||||
capital_county.title_province.free_building_slots > 0
|
||||
AND = {
|
||||
culture = { has_innovation = innovation_ledger }
|
||||
capital_county.title_province.combined_building_level <= 4
|
||||
}
|
||||
AND = {
|
||||
culture = { has_innovation = innovation_baliffs }
|
||||
capital_county.title_province.combined_building_level <= 6
|
||||
}
|
||||
AND = {
|
||||
culture = { has_innovation = innovation_guilds }
|
||||
capital_county.title_province.combined_building_level <= 9
|
||||
}
|
||||
AND = {
|
||||
culture = { has_innovation = innovation_cranes }
|
||||
# We check the most advanced innovation first, as it allows the most building levels
|
||||
trigger_if = {
|
||||
limit = { culture = { has_innovation = innovation_cranes } }
|
||||
capital_county.title_province.combined_building_level <= 12
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { culture = { has_innovation = innovation_guilds } }
|
||||
capital_county.title_province.combined_building_level <= 9
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { culture = { has_innovation = innovation_baliffs } }
|
||||
capital_county.title_province.combined_building_level <= 6
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { culture = { has_innovation = innovation_ledger } }
|
||||
capital_county.title_province.combined_building_level <= 4
|
||||
}
|
||||
trigger_else = { always = no }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue