• 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.
Thanks! I've been trying to make the CK wiki more new user-friendly.

When the CK wiki's up I should have more stuff added, really annoying that it just decided to stop right when I was in the middle of updating it heavily.

:(
 
Are those really the figures for sainthood and beatification? Because they seem like rather low requirements, and a good number of my kings would probably meet them very easily.

Both are events, which means they can fire if the requirements are filled but they don't have to fire.


Code:
###########################
# Death - Old Age  		  #
###########################

character_event = {
	id = 1000

	picture = "event_plague"

	trigger = {
		condition = { type = age value = 45 }
		condition = { 
			type = or
			condition = { type = religion value = catholic	}
			condition = { type = religion value = orthodox	}
		}
		condition = {
			type = and
			condition = { type = not value = { type = trait value = excommunicated } }
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = not value = { type = trait value = sceptical } }
		}
		condition = {
			type = or
			condition = { type = trait value = chaste }
			condition = { type = trait value = forgiving }
			condition = { type = trait value = honest }
			condition = { type = trait value = just }
			condition = { type = trait value = merciful }
			condition = { type = trait value = modest }
			condition = { type = trait value = zealous }
			condition = { type = trait value = temperate }
		}
		condition = { type = piety value = 25 }
	}

	mean_time_to_happen = {
		months = 600

		modifier = {
			condition = { type = age value = 50 }
			factor = 0.9
		}
		modifier = {
			condition = { type = age value = 55 }
			factor = 0.85
		}
		modifier = {
			condition = { type = age value = 60 }
			factor = 0.75
		}
		modifier = {
			condition = { type = age value = 65 }
			factor = 0.5
		}
		modifier = {
			condition = { type = age value = 70 }
			factor = 0.1
		}
		modifier = {
			condition = { type = age value = 80 }
			factor = 0.01
		}
		modifier = {
			condition = { type = health value = 14 }
			factor = 1.25
		}
		modifier = {
			condition = { type = health value = 10 }
			factor = 1.1
		}
		modifier = {
			condition = {
				type = trait
				value = bastard
			}
			factor = 5
		}
		modifier = {
			condition = { type = not value = { type = health value = 7 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = health value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = health value = 5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = health value = 4 } }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = health value = 3 } }
			factor = 0.7
		}
		modifier = {
			condition = { type = not value = { type = health value = 2 } }
			factor = 0.1
		}
		modifier = {
			condition = { type = piety value = 50 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 100 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 300 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 1000 }
			factor = 0.5
		}
		modifier = { 
			condition = { type = ai }
			factor = 0.8
		}
		modifier = {
			condition = { type = court value = 10 }
			factor = 0.9
		}
		modifier = {
			condition = { type = court value = 20 }
			factor = 0.9
		}
		modifier = {
			condition = { type = court value = 30 }
			factor = 0.9
		}
		modifier = {
			condition = { type = court value = 50 }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler }
			condition = { type = not value = { type = age value = 10 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = ruler }
			condition = { type = not value = { type = age value = 50 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = ruler } }
			condition = { type = ruler_child }
			factor = 1.15
		}
	}

	immidiate = {
		effect = { type = death }
		effect = { type = add_trait value = canonized }
	}
}



character_event = {
	id = 1001

	picture = "event_sickness"

	trigger = {
		condition = {
			type = or
			condition = { type = trait value = illness }
			condition = { type = trait value = plagueinfested }
			condition = { type = trait value = pneumonia }
		}
		condition = { 
			type = or
			condition = { type = religion value = catholic	}
			condition = { type = religion value = orthodox	}
		}
		condition = {
			type = and
			condition = { type = not value = { type = trait value = excommunicated } }
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = not value = { type = trait value = sceptical } }
			condition = { type = piety value = 1 }
			condition = {
				type = or
				condition = { type = trait value = chaste }
				condition = { type = trait value = forgiving }
				condition = { type = trait value = honest }
				condition = { type = trait value = just }
				condition = { type = trait value = merciful }
				condition = { type = trait value = modest }
				condition = { type = trait value = zealous }
				condition = { type = trait value = temperate }
			}
		}
	}

	mean_time_to_happen = {
		months = 5000

		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 1 }
			factor = 0.95
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 2 }
			factor = 0.95
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 3 }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 4 }
			factor = 0.9
		}
		modifier = {
			condition = { type = health value = 10 }
			factor = 1.5
		}
		modifier = {
			condition = { type = health value = 8 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = health value = 7 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = health value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = health value = 5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = health value = 4 } }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = health value = 3 } }
			factor = 0.7
		}
		modifier = {
			condition = { type = not value = { type = health value = 2 } }
			factor = 0.1
		}
		modifier = {
			condition = { type = trait value = illness }
			factor = 1.2
		}
		modifier = {
			condition = { type = trait value = plagueinfested }
			factor = 0.3
		}
		modifier = {
			condition = { type = not value = { type = age value = 10 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = age value = 5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = age value = 2 } }
			factor = 0.8
		}
	}

	immidiate = {
		effect = { type = death }
		effect = { type = add_trait value = canonized }
	}
}


character_event = {
	id = 1156

	picture = "event_religion"

	trigger = {
		condition = { type = ruler }
		condition = { type = not value = { type = trait value = excommunicated } }
		condition = { type = not value = { type = trait value = heretic } }
		condition = { type = not value = { type = trait value = sceptical } }
		condition = { type = not value = { type = atwar } }
		condition = { type = piety value = 50 }
		condition = { type = gold value = 150 }
		condition = { type = age value = 20 }
		condition = { type = father
			condition = { type = trait value = canonized }
			condition = { type = not value = { type = trait value = excommunicated } }
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = not value = { type = trait value = sceptical } }
		}
	}

	mean_time_to_happen = {
		months = 600

		modifier = {
			condition = { type = kingdom }
			factor = 0.75
		}
		modifier = {
			condition = { type = duchy }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 100 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 250 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = piety value = 1000 }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = zealous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = crusader }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = diplomacy value = 6 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 6 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.9
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = trait value = zealous } }
			factor = 0.8
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = trait value = sceptical } }
			factor = 1.25
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = not value = { type = diplomacy value = 6 } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = diplomacy value = 10 } }
			factor = 0.66
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = not value = { type = intrigue value = 6 } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = intrigue value = 10 } }
			factor = 0.66
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = trait value = detached_priest } }
			factor = 1.25
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = trait value = scholarly_theologian } }
			factor = 0.9
		}
		modifier = {
			condition = { type = chaplain_csc condition = { type = trait value = mastermind_theologian } }
			factor = 0.75
		}
		modifier = {
			condition = { type = father condition = { type = piety value = 100 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = father condition = { type = piety value = 500 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = father condition = { type = piety value = 1000 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = father condition = { type = trait value = zealous } }
			factor = 0.66
		}
		modifier = {
			condition = { type = father condition = { type = trait value = martial_cleric } }
			factor = 0.9
		}
		modifier = {
			condition = { type = father condition = { type = trait value = scholarly_theologian } }
			factor = 0.8
		}
		modifier = {
			condition = { type = father condition = { type = trait value = mastermind_theologian } }
			factor = 0.66
		}
	}

	action_a = {
		ai_chance = 75
			modifier = { condition = { type = not value = { type = gold value = 200 } } factor = 0.25 }
		effect = { type = gold value = -150 }
		effect = { type = piety value = 10 }
		effect = { type = random_list
			50 = { type = add_trait value = zealous }
			50 = { type = add_trait value = proud }
		}
		effect = { type = random chance = 25
			effect = { type = piety value = 100 }
			effect = { type = remove_trait for = father value = canonized }
			effect = { type = add_trait for = father value = saint }
		}
	}
	action_b = {
		ai_chance = 25
		effect = { type = piety value = -5 }
		effect = { type = add_trait value = sceptical }
	}
}