• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Solmyr

Field Marshal
116 Badges
Mar 12, 2001
3.837
23
enothril.awardspace.com
  • Arsenal of Democracy
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV Sign-up
  • Age of Wonders II
  • Victoria 3 Sign Up
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
Health events with health <1

In character_health_events.txt, Death by Illness (1001 and 1128) have a MTTH modifier for health = 1. However, health is fractional and can be less than 1, and there is no MTTH modifier for that range. Thus characters with health between 0 and 1 are *less* likely to die from illness.

Same thing with events for Illness (1158) and Stress (1159). They have MTTH modifiers for health from 1 to less than 2, but not for health less than 1. So characters with really low health have less chance to get illness or stress.

Richvh might explain it better than I do. :)
 
Upvote 0
Did some playing with the event files and the console. Changed health for a random character whose health stat I edited, then triggered illness event. Logged MTTH as listed in console. Base MTTH is 960 months, or 28800 days. Here are the results:

Health = 0.4; MTTH is 28800 days (1.0 of Base)
Health = 1.4; MTTH is 2880 days (0.1 of Base)
Health = 2.4; MTTH is 20160 days (0.7 of Base)
Health = 3.4; MTTH is 21600 days (0.75 of Base)
Health = 9.4; MTTH is 28800 days (1.0 of Base)
Health = 10.4; MTTH is 43200 days (1.5 of Base)

All of these values follow the modifiers in the character_health_events.txt files; except for values under 1.0.

Added this to the 1158 event:
Code:
modifier = {
			condition = { type = health value = 0 }
			condition = {
				type = not
				value = {
					type = health
					value = 1
				}
			}
			factor = 0.05
		}
	}

and tried the 0.4 Health again. got a MTTH of 1440 or .05 of Base (which is what I made it :D ).

Next I was curious to see if any characters had Health values under 1.0. Did a search of my savegame using "Health = 0." as the string and came up with *many* results.

In conclusion, this does affect the game as stated by Solmyr. It can be fixed by adding a modifier for number values between 0 and 1. I am curious if there are other events out there affected the same way by stats less than 1.0.

~CaBhaal
 
Good catch. I will fix for 1.03. CaBhaal's fix will work just fine. :)