Quote Originally Posted by Malimar View Post
Really obnoxious problem with my mod that I can't figure out.
Spoiler: Code
Show
Code:
#if you're undead, you eventually accumulate all manner of deformities as your bits fall off
character_event = {
	id = Mal.51
	desc = "EVTDESCMAL51"
	picture = GFX_evt_sick_character
	trigger = {
		trait = zombie
	}
	mean_time_to_happen = {
		years = 10
	}

	option = {
		name = EVTOPTA6081
		random_list = {
			10 = {
				add_trait = maimed
			}
			10 = {
				add_trait = clubfooted
			}
			10 = {
				add_trait = harelip
			}
			10 = {
				add_trait = hunchback
			}
			10 = {
				add_trait = mute
			}
			10 = {
				add_trait = ugly
			}
			10 = {
				add_trait = weak
			}
			10 = {
				add_trait = eunuch
			}
			10 = {
				add_trait = blinded
			}
			10 = {
				add_trait = deaf
			}
		}
	}
}

#if you're undead, you eventually accumulate all manner of insanities
character_event = {
	id = Mal.52
	desc = "EVTDESCMAL52"
	picture = GFX_evt_lunatic
	trigger = {
		OR = {
			trait = zombie
			trait = shade
			trait = wight
			trait = lich
	}
	mean_time_to_happen = {
		years = 10
	}

	option = {
		name = EVTOPTA6081
		random_list = {
			10 = {
				add_trait = stressed
			}
			10 = {
				add_trait = depressed
			}
			10 = {
				add_trait = lunatic
			}
			10 = {
				add_trait = possessed
			}
			10 = {
				add_trait = wroth
			}
			10 = {
				add_trait = envious
			}
			10 = {
				add_trait = cruel
			}
			10 = {
				add_trait = cynical
			}
			10 = {
				add_trait = paranoid
			}
			10 = {
				add_trait = ruthless
			}
		}
	}
}

These two events are, as you can see, very similar. They are, as you can see, supposed to fire about once every ten years.

The first one appears to fire at the correct frequency -- it's never actually fired for me that I can recall, but it seems to fire for NPC zombies occasionally, as sometimes I see very old zombies around with various bits missing.

But the second one fires (for the appropriate characters) about once a month, which is way too often, and I can't figure out why.

Anybody have any insight?
After much stress and aggravation, I found a missing }.