N3OW/common/scripted_triggers/00_military_triggers.txt
2026-11-18 14:45:30 +00:00

38 lines
No EOL
1,017 B
Text

#Triggers handling questions of military and warfare
#Checks whether scope character has greater military strength than the ratio specified
military_strength_greater_than_ratio_trigger = {
save_temporary_scope_value_as = {
name = ratio
value = {
value = max_military_strength
divide = $TARGET$.max_military_strength
}
}
scope:ratio > $RATIO$
}
valid_for_maa_trigger = {
NOT = { government_has_flag = government_is_merchant }
OR = {
AND = {
has_government = landless_adventurer_government
has_perk = planned_cultivation_perk
location.county.culture ?= { has_cultural_parameter = $PARAMETER$ }
}
culture = { has_cultural_parameter = $PARAMETER$ }
AND = {
government_has_flag = government_is_republic
any_owned_trade_post_district = {
district_province.county.culture = { has_cultural_parameter = $PARAMETER$ }
has_building_with_flag = trade_post_unlock_cultural_maa
}
}
}
}
valid_for_nomadic_riders_trigger = {
government_has_flag = government_is_nomadic
}