• 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.

Samurye

Sergeant
91 Badges
Sep 13, 2010
58
0
  • Hearts of Iron Anthology
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Rome Gold
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Victoria 2
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Holy Fury Pre-order
  • 500k Club
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: El Dorado
  • Stellaris: Apocalypse
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma Pre-order
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Distant Stars
  • Crusader Kings Complete
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Digital Anniversary Edition
I am currently working on a Fantasy-style mod. I would like know how to introduce a new culture to the game. I would also like to know how to stop members of a specific culture from dying of old age. If that is not possible, I would like to know if it would be possible to stop death by aging for specific characters.
Thank you.
 
I've worked on and off on this sort of thing for a while. I'm a busy guy but I'd be happy to give you some pointers if you ever want to contact me.

The solution is rather easy... you have to mod one of the pre-existing cultures. You'll find this is the biggest issue with any mod in CK is the limitations, and it is why main of us wait with baited breath for CK2. Basically you have to change the config files to change an in-game culture to "Elven". Easy, right? There are a couple unused ones... Iberian, Celtic and Byzantine come to mind.

Then, to prevent their death, edit the death by old age events (note the plural) in the character_health_events in the db/events folder to not include people of that culture. It should look like this (I think, it has been a while):
Code:
	trigger = {
		condition = { type = age value = 45 }
                condition = { type = not value = { type = culture value = byzantine } }
	}

The best source of knowledge is checking out the other events. I haven't written a CK even in years, but I can piece one together using other events in the events folder.

Edit: Suggestion, make the fertility of elves really, really low. Like almost infertile. Maybe a trait will help with this. Or they'll have a million children, half a million will be boys, and that is a lot of prestige loss unless you have enough titles to hand out.
 
Last edited: