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

0yvind

First Lieutenant
30 Badges
Mar 18, 2017
259
371
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings III
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
I'm currently modding a character in the history files to be a saint after death. Adding the trait is easy enough, but I'm not sure how to add a saintly bloodline to the character, which describes his name, nature, a miracle and who canonized him.

I tried with this...

Code:
create_bloodline = {
    type = saintly_bloodline_catholic_04
    has_dlc = "Holy Fury"
}

This adds a bloodline with the desired effects, but the name of it is only "saintly_bloodline_catholic_04", and there's no description of any kind nor any "Pope-target" who canonized him.

From the localisation files I can see this line, which I suspect could be key somehow:

Code:
saintly_bloodline_description;[saint_person.GetTitledFirstName] was known for [saint_person.GetNature][saint_person.GetMiracleShort]. Canonized by [Root.GetTitledName].;

Is there a way to modify this description in different ways and implement it in the history files somehow?
 
In the code that generates saintly bloodlines, the creation of the bloodline is always followed by

Code:
new_bloodline = {
    set_name = saintly_bloodline_name
    set_description = saintly_bloodline_description
}

which sets those localization keys to the name and description of the bloodline. The saint_person in that description is an event target that exists in the event that generates the bloodline. To add your own description, simply make your own localization key with that description and assign it and an appropriate name to the new bloodline in the same way. If you have your own custom bloodline you want to use, that's defined with the identifier "my_bloodline" for example, you define "my_bloodline" as a localization key with the name of the bloodline, and "my_bloodline_desc" as a localization key with the description.
 
Thank you for the reply! I ended up creating a custom bloodline for my character, with a specified name and description. It works for now, though I kind of feel like I'm "cheesing" it.

Anyway, the last piece of the puzzle right now is getting the character in the saint list - the one you can access through the religion tab. Any idea how I can do that?