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

Aozora Kasuga

Sergeant
50 Badges
Apr 18, 2018
51
122
  • Hearts of Iron 4: Arms Against Tyranny
  • Victoria 3 Sign Up
  • Hearts of Iron IV Sign-up
  • Crusader Kings III
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Imperator: Rome Deluxe Edition
  • Stellaris
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Third Rome
  • Stellaris: Lithoids
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Res Publica
For examples, when Louis-Philipe de Orlean is ruling France, the name will become French Kingdom, while it will change as French Empire if Napolon III takes into the power.
However, such a trigger doesn't seem to have been implemented into the game yet. Is there any althernative method to ahieve above function?
 
  • 1Like
Reactions:
Hi, here, I was also going to ask about how to check for last name for Habsburg Restoration event but it look like, as you said, no such trigger existed yet, unfortunately. Hope that will be eventually addressed at some point by Paradox devs. :/
 
Unfortunately, the only method is a time-consuming workaround: you may assign the characters a variable ("Bourbon", "Bonaparte") at the start of the game and add an event for the heir to inherit this variable, which you may later use to check if they belong to a certain dynasty.
 
  • 1
Reactions:
Unfortunately, the only method is a time-consuming workaround: you may assign the characters a variable ("Bourbon", "Bonaparte") at the start of the game and add an event for the heir to inherit this variable, which you may later use to check if they belong to a certain dynasty.
Yeah that would only work for new save games. Unfortunate. I am playing Britain in my current play-through but I did not like seeing Austria without Habsburg. :p

In any case, I have gone ahead and made a suggestion for this here in the suggestion thread I created for improved moddability. Also tagging @Aozora Kasuga to let him know about this. You're all welcome. :)
 
Unfortunately, the only method is a time-consuming workaround: you may assign the characters a variable ("Bourbon", "Bonaparte") at the start of the game and add an event for the heir to inherit this variable, which you may later use to check if they belong to a certain dynasty.
I just added the variables to ruler/heir characters in most of the Great Powers via /history/characters folder in preparation for the new game campaign but could you please explain to me how this event thing work? Does it involve the on_actions folder thing?

Also, I am guessing the check would be done like this:

Code:
trigger = {
    c:AUS = {
        ruler = {
            NOT = {
                has_variable = var_habsburg
            }
        }
    }
}

immediate = {
    kill_ruler = yes
    create_character = {
        first_name = Franz_Josef
        last_name = von_Habsburg
        ruler = yes
        noble = yes
        birth_date = 1830.8.18
        interest_group = ig_landowners
        ideology = ideology_moderate
        traits = {
            cautious
        }
        on_created = {
            set_variable = var_habsburg
        }
    }
}

And then put this event under on_monthly_pulse_country in /on_action/ or something like that? Though, I am unsure if kill_ruler is redundant or not.

Also, I am not certain if you can do create_character without first_name, so to generate with random given name. I may have to set multiple characters, each if-limited by condition based on year, similar to how it is done in game/events/meiji_restoration.txt.
 
  • 1
Reactions:
There are many possibilities how to design it. For the start, have a look at the two on_actions "on_character_death" and "on_new_ruler". The first one would be the on_action you are searching for: each time a ruler dies, an event will trigger under certain circumstances, like, having the right variable (habsburg) or being the ruler of the right country (AUS, KUK). Just have a look at the file under "on_character_death" as an example how the event is triggered for Hawaii if the ruler dies. In this case, you won't need to kill the character yourself.

Considering the Meji-example, I think you may take inspiration by the election events in republics in EUIV when a ruler dies. However, you may hide a random list of different names with an equally high chance to get one of them, each with typical habsburg names like Franz, Ferdinand or Josef.
 
Last edited:
  • 1
Reactions:
There are many possibilities how to design it. For the start, have a look at the two on_actions "on_character_death" and "on_new_ruler". The first one would be the on_action you are searching for: each time a ruler dies, an event will trigger under certain circumstances, like, having the right variable (habsburg) or being the ruler of the right country (AUS, KUK). Just have a look at the file under "on_character_death" as an example how the event is triggered for Hawaii if the ruler dies. In this case, you won't need to kill the character yourself.

Considering the Meji-example, I think you may take inspiration by the election events in republics in EUIV when a ruler dies. However, you may hide a random list of different names with an equally high chance to get one of them, each with typical habsburg names like Franz, Ferdinand or Josef.
That is funny, because I just literally modded that on_character_death yesterday for an unrelated thing, as I discovered the call_election effect which I could use it to force a fresh election on death of the ruler, like how the British parliament were historically dissolved for an election (until it was changed by 1867 Reform Act) on death of the monarch, a thing called Demise of the Crown. :p Anyway, but, yes, I could use that Hawaiian thing as a template. Good thinking there.

And random_list is a good idea as well. I can try that approach, too.
 
Last edited:
There are many possibilities how to design it. For the start, have a look at the two on_actions "on_character_death" and "on_new_ruler". The first one would be the on_action you are searching for: each time a ruler dies, an event will trigger under certain circumstances, like, having the right variable (habsburg) or being the ruler of the right country (AUS, KUK). Just have a look at the file under "on_character_death" as an example how the event is triggered for Hawaii if the ruler dies. In this case, you won't need to kill the character yourself.

Considering the Meji-example, I think you may take inspiration by the election events in republics in EUIV when a ruler dies. However, you may hide a random list of different names with an equally high chance to get one of them, each with typical habsburg names like Franz, Ferdinand or Josef.
Actually, a follow-up. I wrote this, commented out for now in the file before it is ready for deployment. I have not yet added other create_character under random_list, as I wanted to get your input on this first before I go further with this.

Code:
# Root = Character
on_new_ruler = {
#    if = {
#        limit = {
#            exists = c:AUS
#            owner = c:AUS
#            owner = {
#                has_law = law_type:law_monarchy
#            }
#            NOR = {
#                has_variable = lg-Var-Habsburg_ruler
#                has_variable = lg-Var-Habsburg_heir
#            }
#        }
#        random_list = {
#            20 = {
#                create_character = {
#                    first_name = Franz_Josef
#                    last_name = von_Habsburg
#                    heir = yes
#                    noble = yes
#                    birth_date = 1830.8.18
#                    interest_group = ig_landowners
#                    ideology = ideology_moderate
#                    traits = {
#                        cautious
#                    }
#                    on_created = {
#                        set_variable = lg-Var-Habsburg_ruler
#                    }
#                }
#            }
#        }
#    }
}

But I am unclear what you mean exactly by random_list. I am assuming you meant like what I did above. Or do you mean putting random_list under first_name? For example:

Code:
    create_character = {
        first_name = {
            random_list = {
                20 = Franz_Josef
                20 = Franz
            }
        }
        last_name = von_Habsburg
        heir = yes
        noble = yes
        birth_date = 1830.8.18
        interest_group = ig_landowners
        ideology = ideology_moderate
        traits = {
            cautious
        }
        on_created = {
            set_variable = lg-Var-Habsburg_heir
        }
    }

Somehow, I doubt random_list would work that deep. I am fairly certain that, at best, the opening for random_list can only be placed above the create_character section.

However, digging further, it looks like you might potentially be able to specify more than one values for first_name as it seems to be suggested in /game/events/test_events.txt as shown here:

Code:
#test.61 = {
#    type = country_event
#    title = "Test create character effect"
#    duration = 10
#
#    option = {
#        name = "Create Erwin"
#        highlighted_option = yes
#        show_as_unavailable = { always = yes }
#       
#        create_character = {
#            #role = politician # Remove this line
#            first_name = "Erwin" # "August" "Erwin"
#            last_name = "Vogel_von_Falkenstein" # "von_Alten" "Vogel_von_Falkenstein"
#            ruler = yes
#            age = 42
#            interest_group = ig:ig_rural_folk
#            ideology = ideology_traditionalist
#            culture = cu:brazilian
#            religion = rel:theravada
#            traits = {
#                reserved
#            }
#        }
#    }
#
#    option = {
#        name = "CANCEL"
#        default_option = yes
#    }
#
#}

Interesting. Since this is a test event that had been commented out, though, there is no guarantee this would work but it may be worth a try and see if it works. It may or may not achieve the desirable outcome. However, I should also note that there is another # between first and second first_name / last_name values in this text. So this probably does not mean that first_name / last_name can take multiple values at all.

One other thing I wonder is whether it is possible to set a range for age. Otherwise, I will have to set the age somewhere above 18. Sure would not want an underage ruler for a Habsburg Restoration. That would be.... odd. ;P