• 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.
Is there any way to specify the age at which a character created through the history/characters folder gained immortality? I tried to do it by adding the trait to his trait list, and also tried by specifying a date, like when you say when he's married or when he's born, but he still looks old in his portrait whenever I start the game.

By the way, it's my first time posting here, so excuse me if I asked something obvious. I couldn't find any documentation for it, and the patch notes only mentioned the immortal_age parameter for the create_character command.
 
I've had inconsistent results by adding the immortality at a certain date in an effect block.
The solution I finally had to use was creating the characters I needed through a script at the start of the campaign.
 
Is there a way to check all the previous rulers of a title?

Like if no other holder of a title has ever been female, and the current ruler is, you would get an event like "the first woman on the throne of x" or something.

From the title scope, you can check it using

Code:
any_previous_holder = {
   is_female = no
}

However, to keep the event from triggering multiple times (as any_previous_holder won't include the current holder), it might be smarter to set a title flag once you get the first female ruler (and thus trigger the event) and check for

Code:
NOT = {
   has_title_flag = first_female_holder
}
Low-impact method: on_new_holder event, with a pre-trigger 'only_female = yes' & 'trigger = { FROM = { NOT = { any_previous_holder = { is_female = yes } } } }'.
 
Thanks for your help! Is there also a way to check the number of previous rulers of a title?
It wouldn't make much sense to have "the first woman on the throne of x" event if she's only the second or third ruler of a title.

I have also another question.

Is there a way to set something like this as a condition?
"is not the spouse of you". So the spouse of your character would not be eligible for this.
 
Thanks for your help! Is there also a way to check the number of previous rulers of a title?
It wouldn't make much sense to have "the first woman on the throne of x" event if she's only the second or third ruler of a title.
Change the trigger:
Code:
trigger = {
    FROM = {
        any_previous_holder = { count = 4 }
        NOT = { any_previous_holder = { is_female = yes } }
    }
}
Of course, if there *is* a woman in the 1st 3, no later woman will trigger this, since there has already been a woman.
 
How does the game control horde invasions now? I haven't really played far into the game since before Horse Lords. I can see there's a decision to become Genghis Khan for mongol rulers, but in my current game the mongol culture has been wiped out so it won't happen that way. The old horde events are commented out, but I can't find any other events to trigger the mongol horde invasions.
 
Technically not modding, but I feel like it belongs here.

Since the game auto-generates missing title holders on game start, does it do the same if you load a savegame that's missing holders for certain titles?
 
Technically not modding, but I feel like it belongs here.

Since the game auto-generates missing title holders on game start, does it do the same if you load a savegame that's missing holders for certain titles?

If you load a save with missing holders, a random nearby ruler gets the title, at least in the case of counties.
 
Hello there.
I have a problem with an event. I create a character (a killer that want to kill you) and i need that in the first visible event, his portrait is invisible. I do this:

evt.1 : hidden event, create the killer. He receive an event (for ping)
evt.2 : the killer send me an event to be the "from" of the event
evt.3 : visible event for the player. It should be with the player's portrait on the left and, with hide_from = yes, without portrait on the right. The problem is that the portraits are inverted, the killer is on the left and the player is on the right. In this way "hide_from" hides the player's portrait.

I checked: the killer is from and the player is root, why does its portrait is on the left ?
 
Code:
trigger = {
    FROM = {
        any_previous_holder = { count = 4 }
        NOT = { any_previous_holder = { is_female = yes } }
    }
}
Does this code work if there have been more than 4 previous male rulers?

Or would count > 4 fix this?
 
Code:
trigger = {
    FROM = {
        any_previous_holder = { count = 4 }
        NOT = { any_previous_holder = { is_female = yes } }
    }
}
Does this code work if there have been more than 4 previous male rulers?

Or would count > 4 fix this?

When working with triggers that involve numbers, "=" is actually the same as ">=", so yes, it should work.
 
I've put out a bare-bones version of my first mod here: Better Special Interest.

There are still several things that I can't for the life of me figure out how to do. Does anyone having any ideas on how to:
  1. Add an overlay to child portraits? I currently have an unadded, kludgy workaround that involves changing a child's graphical culture to one where the overlay is an actual part of the portrait. But I'm pretty sure it's against the TOS to include those images as part of the mod, plus it causes a CTD if the child's normal culture doesn't have an explicitly defined "special" counterpart.
  2. Show all characters with a given trait via decision. Scoping to the cached special_interest trait in the event option only shows the most recent person to receive the trait.
And an unrelated question: What are the qualifications for the father_of_unborn_known condition? Like, what conditions preclude father_of_unborn_known = yes and what precludes father_of_unborn_known = no?
 
Last edited:
If there is a decision/event I want to remove without overriding the file, would creating a decision/event with same name/id and with "always=no" in the potential/trigger work?
 
Is there any way to have a trait increase one culture's opinion of you they way they can with religions?
I'm working on a work-around, but if there's some built in way (setting a modifier definition for a culture?), I'd rather do that.