scripted_triggers updated files
This commit is contained in:
parent
37045a17ee
commit
072e45c086
36 changed files with 4934 additions and 1754 deletions
|
|
@ -39,6 +39,37 @@ basic_is_available_ai = {
|
|||
has_contagious_deadly_disease_trigger = no
|
||||
}
|
||||
|
||||
is_in_activity = {
|
||||
OR = {
|
||||
custom_description = {
|
||||
text = ALREADY_IN_ACTIVITY
|
||||
OR = {
|
||||
exists = involved_activity
|
||||
has_variable = {
|
||||
name = homage_liege_scope
|
||||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
name = merchant_var # only added here since they should always be travelling
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
}
|
||||
custom_description = {
|
||||
text = ALREADY_PLANNING_ACTIVITY
|
||||
has_character_flag = planning_an_activity
|
||||
}
|
||||
# Variable set on Mandala succession
|
||||
custom_tooltip = {
|
||||
text = busy_in_mandala_succession
|
||||
has_variable = busy_in_mandala_succession
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_available_allow_travelling = {
|
||||
is_available_quick = {
|
||||
alive = yes
|
||||
|
|
@ -56,7 +87,10 @@ is_available_allow_travelling = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
name = merchant_var # only added here since they should always be travelling
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -65,8 +99,6 @@ is_available_allow_travelling = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
# Variable set on Mandala succession
|
||||
custom_tooltip = {
|
||||
text = busy_in_mandala_succession
|
||||
|
|
@ -93,7 +125,9 @@ is_available = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -102,8 +136,6 @@ is_available = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
# Variable set on Mandala succession
|
||||
custom_tooltip = {
|
||||
text = busy_in_mandala_succession
|
||||
|
|
@ -121,9 +153,10 @@ is_available_travelling = {
|
|||
travel = yes
|
||||
}
|
||||
has_contagious_deadly_disease_trigger = no
|
||||
NOR = {
|
||||
has_character_flag = is_in_task_contract_event_chain
|
||||
has_variable = gone_adventuring
|
||||
has_none_of_variables = {
|
||||
name = is_in_task_contract_event_chain
|
||||
name = gone_adventuring
|
||||
name = merchant_var
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -138,9 +171,10 @@ is_available_travelling_adult = {
|
|||
incapable = no
|
||||
}
|
||||
has_contagious_deadly_disease_trigger = no
|
||||
NOR = {
|
||||
has_character_flag = is_in_task_contract_event_chain
|
||||
has_variable = gone_adventuring
|
||||
has_none_of_variables = {
|
||||
name = is_in_task_contract_event_chain
|
||||
name = gone_adventuring
|
||||
name = merchant_var
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -156,9 +190,10 @@ is_available_travelling_ai_adult = {
|
|||
incapable = no
|
||||
}
|
||||
has_contagious_deadly_disease_trigger = no
|
||||
NOR = {
|
||||
has_character_flag = is_in_task_contract_event_chain
|
||||
has_variable = gone_adventuring
|
||||
has_none_of_variables = {
|
||||
name = is_in_task_contract_event_chain
|
||||
name = gone_adventuring
|
||||
name = merchant_var
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +257,9 @@ is_available_ai = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -231,8 +268,6 @@ is_available_ai = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -256,7 +291,9 @@ is_available_child = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -265,8 +302,6 @@ is_available_child = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -289,7 +324,9 @@ is_available_child_allow_travel = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -298,8 +335,6 @@ is_available_child_allow_travel = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -323,7 +358,9 @@ is_available_ai_child = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -332,8 +369,6 @@ is_available_ai_child = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -356,7 +391,9 @@ is_available_healthy_child = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -365,8 +402,6 @@ is_available_healthy_child = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -390,7 +425,9 @@ is_available_healthy_ai_child = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -399,8 +436,6 @@ is_available_healthy_ai_child = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -423,7 +458,9 @@ is_available_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -432,8 +469,6 @@ is_available_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -457,7 +492,9 @@ is_available_ai_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -466,8 +503,6 @@ is_available_ai_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -490,7 +525,9 @@ is_available_healthy_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -499,8 +536,6 @@ is_available_healthy_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -524,7 +559,9 @@ is_available_healthy_ai_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -533,8 +570,6 @@ is_available_healthy_ai_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
is_available_adult_or_is_commanding = {
|
||||
|
|
@ -564,7 +599,9 @@ is_available_at_peace = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -573,8 +610,6 @@ is_available_at_peace = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -598,7 +633,9 @@ is_available_at_peace_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -607,8 +644,6 @@ is_available_at_peace_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -634,7 +669,9 @@ is_available_at_peace_ai_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -643,8 +680,6 @@ is_available_at_peace_ai_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -669,7 +704,9 @@ is_available_at_peace_adult_lenient = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -678,8 +715,6 @@ is_available_at_peace_adult_lenient = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
|
||||
|
|
@ -704,7 +739,9 @@ is_available_even_at_war_adult = {
|
|||
name = meditation_character_flag
|
||||
name = local_shrine_rite
|
||||
name = petition_liege_character_flag
|
||||
name = petition_head_of_faith_petitioner
|
||||
name = holding_court_character_flag
|
||||
name = gone_adventuring
|
||||
}
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
|
|
@ -713,8 +750,6 @@ is_available_even_at_war_adult = {
|
|||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
}
|
||||
|
||||
is_capable_adult = {
|
||||
|
|
@ -863,26 +898,38 @@ is_landless_adventurer = {
|
|||
|
||||
# This trigger checks if a character is a governor in an admin realm (implying they are landed)
|
||||
is_governor = {
|
||||
government_allows = administrative
|
||||
is_landed = yes
|
||||
top_liege != this
|
||||
OR = {
|
||||
highest_held_title_tier >= main_administrative_tier
|
||||
highest_held_title_tier >= min_title_maa_tier
|
||||
custom_description = {
|
||||
text = is_governor
|
||||
subject = this
|
||||
government_has_mechanic = administrative
|
||||
is_landed = yes
|
||||
top_liege != this
|
||||
OR = {
|
||||
highest_held_title_tier >= main_administrative_tier
|
||||
highest_held_title_tier >= min_title_maa_tier
|
||||
}
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
}
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
}
|
||||
is_governor_or_admin_count = {
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
is_landed = yes
|
||||
top_liege != this
|
||||
highest_held_title_tier >= tier_county
|
||||
tgp_is_ceremonial_liege_trigger = no
|
||||
}
|
||||
|
||||
is_governor_or_landless_admin = {
|
||||
OR = {
|
||||
is_governor = yes
|
||||
is_landless_administrative = yes
|
||||
tgp_is_any_minister = yes
|
||||
}
|
||||
}
|
||||
|
||||
# Checks if a character is a landless house_head within an admin realm
|
||||
is_landless_administrative = {
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
is_landed = no
|
||||
is_house_head = yes
|
||||
has_domicile = yes
|
||||
|
|
@ -901,20 +948,38 @@ is_landed_or_landless_administrative = {
|
|||
OR = {
|
||||
is_landed = yes
|
||||
is_landless_administrative = yes
|
||||
tgp_is_any_minister = yes # ministers should receive admin events and activity even if they are not house head
|
||||
}
|
||||
}
|
||||
is_landed_or_landless_administrative_or_theocratic = {
|
||||
OR = {
|
||||
is_landed = yes
|
||||
is_landless_administrative = yes
|
||||
tgp_is_any_minister = yes # ministers should receive admin events and activity even if they are not house head
|
||||
AND = {
|
||||
is_ruler = yes
|
||||
government_has_flag = government_is_theocracy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Checks if a character is either landed, a landless house head within an admin realm, a landless nomad, a landless adventurer, a landless soryo, or a minister
|
||||
is_playable_character = {
|
||||
is_ruler = yes
|
||||
OR = {
|
||||
government_has_flag = government_is_prepublic
|
||||
government_has_flag = government_is_urepublic
|
||||
is_landed = yes
|
||||
is_landless_administrative = yes
|
||||
is_landless_adventurer = yes
|
||||
is_landless_nomad = yes
|
||||
is_landless_soryo = yes
|
||||
tgp_is_any_minister = yes # To keep ministers playable, regardless of having a nobel family title or not
|
||||
exists = domicile
|
||||
# exclude barons
|
||||
trigger_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
is_landed = yes
|
||||
government_has_flag = government_is_theocracy
|
||||
}
|
||||
}
|
||||
highest_held_title_tier > tier_barony
|
||||
}
|
||||
tgp_is_any_minister = yes # To keep ministers playable, regardless of having a noble family title or not
|
||||
has_variable = laamp_transition
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -937,3 +1002,13 @@ is_eunuch_trigger = {
|
|||
has_trait = beardless_eunuch
|
||||
}
|
||||
}
|
||||
|
||||
should_in_default_location_trigger = {
|
||||
is_available_quick = {
|
||||
alive = yes
|
||||
travel = no
|
||||
in_army = no
|
||||
imprisoned = no
|
||||
}
|
||||
NOT = { exists = involved_activity }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue