N3OW/common/scripted_triggers/00_military_triggers.txt

30 lines
No EOL
698 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 = {
OR = {
AND = {
is_landless_adventurer = yes
has_perk = planned_cultivation_perk
location.county.culture ?= { has_cultural_parameter = $PARAMETER$ }
}
culture = { has_cultural_parameter = $PARAMETER$ }
}
}
valid_for_nomadic_riders_trigger = {
government_has_flag = government_is_nomadic
}