Stellaris

Stellaris

110 ratings
First Ruler Stays
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
418.981 KB
6 Apr, 2021 @ 11:45am
15 Apr, 2021 @ 8:58pm
8 Change Notes ( view )

Subscribe to download
First Ruler Stays

Description
Now fully functioning.

Has it ever bothered you that your first Ruler disappears if an election happens?

3.0 is fixing this by making your first Ruler become a governor after election, but I can do you one better.

Choose your preferred class at the start of the game, and your Ruler will become that class after election.


1.4 Version Notes

Removed a condition for checking the First Ruler's previous class. This should theoretically make the mod work with 3.0.1.

1.3 Version Notes

Ruler traits now transferring as intended.
New class traits are randomly chosen from all vanilla traits. This defaults to 3, but if 3 of the relevant traits can't be added, it'll do less. This doesn't count Generic/Racial traits.
Traits with conditions/opposites should only generate if normally possible.
(Examples: You shouldn't get Butcher and Restrained together, as they're opposites, and you shouldn't get either of them if you're playing a Machine Intelligence. Some traits, like Scout, can't be generated without having an appropriate technology researched, which for Scout requires you to have a certain level of Sensors researched.)
Negative traits are possible, but other traits are weighted 5x more heavily, so it's very unlikely.
Racial traits should transfer and convert appropriately. If you Ruler becomes Synthetic and demotes to Admiral, your new Admiral should have the admiral version of Synthetic as well as still having the ruler version if they get re-elected.

Caveats

Generic (Any-class) traits are untouched. These are traits that modify a Ruler's lifespan and experience gain. This likely means they'll still have it in their new class but lose it in re-election. I need more testing on this to decide how to handle it.

Any non-vanilla traits cannot be handled. Ruler traits added by a mod will neither be removed from their non-Ruler class nor added back on re-election (unless the other mod handles it.) To my knowledge, it's not possible to fix this without accounting for mods on an individual level, which I don't plan to do unless the relevant mod is popular enough and the uploader approves. If there is a way to do this on a broader scale, I'd be happy to know.


Variants
No Menu Randomized - https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2451616129
24 Comments
The Unknown Guy 28 May, 2021 @ 11:31am 
Re: character cloning: it happened to me recently
MachEvil 24 Apr, 2021 @ 4:23am 
Is this still okay with 3.02?
Velich  [author] 15 Apr, 2021 @ 9:03pm 
I was aware of this. I've made a change to the mod. This should allow it to still be used in 3.0.1 for anyone still wanting non-governor demotion.

There was a bug that caused my Envoy who got elected down the line to be cloned into my First Ruler's chosen job class after their removal from office, giving me an Admiral and an Envoy with the same name and portrait. I believe I fixed this with a silent update a week ago, but the change I made to make this 3.0.1 compatible might make that happen again. If anyone encounters this, do comment.
arieviloj 15 Apr, 2021 @ 1:46pm 
A change has appeared in this update similar to its mod.
explodoboy 9 Apr, 2021 @ 11:55am 
Finally, I can use this mod! Thank you!
Velich  [author] 9 Apr, 2021 @ 9:25am 
Ruler traits now carry over as intended. Fixed the count for new class traits since it was sometimes generated 4. Weighted down negative traits since I was almost always getting one during my testing.

Contemplating a no-menu version as a separate mod.

A random assignment would take about 5 minutes to make, so it should be up soon. Ethics/Government based assignment is also possible, but the main difficulty of that is how to actually determine which classes are most relevant to which ethics.

I'm thinking in order of priority:

Militarist - Admiral
Egalitarian - Governor
Materialist - Scientist
Xenophobe - General
arieviloj 9 Apr, 2021 @ 6:49am 
awesome thx!
FinePhenomena 9 Apr, 2021 @ 4:35am 
Thank you for this!!
♤ |_Pandora_| ♤ 9 Apr, 2021 @ 2:37am 
Wow
Velich  [author] 8 Apr, 2021 @ 9:41pm 
Good news. Like it says in the description, this is mostly functioning now. I did write a bunch of script for carrying over the Ruler traits, but the only time this actually did anything, the ruler just ended up with 4 ruler traits in their re-election campaign.

So if you don't care about your Ruler's first set of Ruler traits, this should work entirely as intended again.