Stellaris

Stellaris

111 vurderinger
First Ruler Stays
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
418.981 KB
6. apr. 2021 kl. 11:45
15. apr. 2021 kl. 20:58
8 ændringsbemærkninger ( vis )

Abonner for at downloade
First Ruler Stays

Beskrivelse
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2451616129
24 kommentarer
The Unknown Guy 28. maj 2021 kl. 11:31 
Re: character cloning: it happened to me recently
MachEvil 24. apr. 2021 kl. 4:23 
Is this still okay with 3.02?
Velich  [ophavsmand] 15. apr. 2021 kl. 21:03 
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 kl. 13:46 
A change has appeared in this update similar to its mod.
explodoboy 9. apr. 2021 kl. 11:55 
Finally, I can use this mod! Thank you!
Velich  [ophavsmand] 9. apr. 2021 kl. 9:25 
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 kl. 6:49 
awesome thx!
FinePhenomena 9. apr. 2021 kl. 4:35 
Thank you for this!!
♤ |_Pandora_| ♤ 9. apr. 2021 kl. 2:37 
Wow
Velich  [ophavsmand] 8. apr. 2021 kl. 21:41 
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.