Event CM.4131, "# Weak or old character becomes ill" appears to be written to have two levels of effect - characters who are old or injured but otherwise healthy can become ill, and characters already ill or plague-ridden become incapable.
However, since the ill trait is added before the second check occurs, the second level effect will happen to anyone who qualifies for the event - since they're not sick, they become ill, and since they're now ill, they become incapable. This can easily be checked by manually triggering the event with the console.
Switching the order of the two IF clauses, or using the break = yes command, should fix it.
Code:
# Weak or old character becomes ill or incapable
character_event = {
id = CM.4131
desc =*EVTDESC_CM_4131
picture = GFX_evt_sun_temple
border = GFX_event_normal_frame_religion
is_triggered_only = yes
trigger = {
OR = {
age = 70
health_traits = 1
}
}
option = {
name = EVTOPTA_CM_4131
if = {
limit = {
NOT = { trait = ill }
NOT = { trait = pneumonic }
NOT = { trait = infirm }
NOT = { trait = has_tuberculosis }
NOT = { trait = has_typhoid_fever }
NOT = { trait = has_typhus }
NOT = { trait = has_bubonic_plague }
NOT = { trait = has_measles }
NOT = { trait = has_small_pox }
NOT = { trait = syphilitic }
NOT = { trait = leper }
}
add_trait = ill
}
if = {
limit = {
OR = {
trait = ill
trait = pneumonic
trait = infirm
trait = has_tuberculosis
trait = has_typhoid_fever
trait = has_typhus
trait = has_bubonic_plague
trait = has_measles
trait = has_small_pox
trait = syphilitic
trait = leper
}
}
add_trait = incapable
}
}
}
Switching the order of the two IF clauses, or using the break = yes command, should fix it.
Upvote
0