Skip to content

Commit

Permalink
revert back to scoped infirm age trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
edmund-h committed Nov 21, 2023
1 parent b3b3b63 commit 305c34a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions common/scripted_triggers/20_health_triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,35 @@ age_ranked_health_vulnerability_threshold_trigger = {
has_trait = infirm
# Otherwise, we check health crossed against age.
# Warcraft - we have to divide by the age multiplier to get effective age for paradox purposes
save_temporary_scope_value_as = {
name = temp_age
value = {
value = age
divide = racial_age_multiplier_value
}
}
## Characters that are this old are vulnerable regardless of health.
age_in_relation_to_humans_more_than_trigger = { age = 90 }
scope:temp_age >= 90
## Else, the higher your health is, the older you need to be to suffer age-related health problems.
AND = {
health <= good_health
age_in_relation_to_humans_more_than_trigger = { age = 80 }
scope:temp_age >= 80
}
AND = {
health <= medium_health
age_in_relation_to_humans_more_than_trigger = { age = 70 }
scope:temp_age >= 70
}
AND = {
health <= fine_health
age_in_relation_to_humans_more_than_trigger = { age = 60 }
scope:temp_age >= 60
}
AND = {
health <= poor_health
age_in_relation_to_humans_more_than_trigger = { age = 50 }
scope:temp_age >= 50
}
AND = {
health <= dying_health
age_in_relation_to_humans_more_than_trigger = { age = 40 }
scope:temp_age >= 40
}
}
}
Expand Down

0 comments on commit 305c34a

Please sign in to comment.