Since there are currently no events for illness and stress to develop into other traits, I wrote some of my own:
Critique is welcomed, as these are completely untested (though they are copied from the basic illness and stress events in character_health_events.txt). Also, I have no idea how to put in appropriate text for event name and action_a description...
Edit:
Reposted with new event ids to avoid conflict.
Edited to incorporate suggestions.
Made effect immediate before pressing button.
Changed MTTH to 60 months (5 years) to cause illness or stress to develop into advanced stage faster (people might want to edit the recovery events to have a similar MTTH).
Added event names.
Code:
character_event = {
id = 20100
picture = "event_plague"
name = "Character Afflicted with Leprosy"
trigger = {
condition = { type = trait value = illness }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = leper }
effect = { type = remove_trait value = illness }
}
}
character_event = {
id = 20101
picture = "event_plague"
name = "Character Afflicted with Pneumonia"
trigger = {
condition = { type = trait value = illness }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = pneumonia }
effect = { type = remove_trait value = illness }
}
}
character_event = {
id = 20102
picture = "event_plague"
name = "Character Afflicted with Plague"
trigger = {
condition = { type = trait value = illness }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = plagueinfested }
effect = { type = remove_trait value = illness }
}
}
character_event = {
id = 20103
picture = "event_plague"
name = "Character Develops Depression"
trigger = {
condition = { type = trait value = stress_symptom }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = depression }
effect = { type = remove_trait value = stress_symptom }
}
}
character_event = {
id = 20104
picture = "event_plague"
name = "Character Develops Schizofrenia"
trigger = {
condition = { type = trait value = stress_symptom }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = schizofrenia }
effect = { type = remove_trait value = stress_symptom }
}
}
character_event = {
id = 20105
picture = "event_plague"
name = "Character Develops Insanity"
trigger = {
condition = { type = trait value = stress_symptom }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = health value = 10 }
factor = 1.5
}
modifier = {
condition = {
type = not
value = { type = health value = 7 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 5 }
}
factor = 0.9
}
modifier = {
condition = {
type = not
value = { type = health value = 4 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 3 }
}
factor = 0.93
}
modifier = {
condition = {
type = not
value = { type = health value = 2 }
}
factor = 0.14
}
}
immidiate = {
effect = { type = add_trait value = maniac }
effect = { type = remove_trait value = stress_symptom }
}
}
Critique is welcomed, as these are completely untested (though they are copied from the basic illness and stress events in character_health_events.txt). Also, I have no idea how to put in appropriate text for event name and action_a description...
Edit:
Reposted with new event ids to avoid conflict.
Edited to incorporate suggestions.
Made effect immediate before pressing button.
Changed MTTH to 60 months (5 years) to cause illness or stress to develop into advanced stage faster (people might want to edit the recovery events to have a similar MTTH).
Added event names.
Last edited: