So I made a little test mod and I'm leaving notes on what I found here in case anyone wants t do anything with it. This was inspired by the idea that generals and admirals could be merged into a single Commander leader class.
The mod just adds a line to the admiral class that allow admirals to lead armies. It doesn't remove any line from generals.
This lead to some interesting behavior. First, I was able to put admirals in charge of armies. However, this changed their icon to that of a general and their background becomes green. But they still show up as admirals in the leader window. What's more, if you try to look at just your generals it will show no owned leaders and the leader pool to hire from will be admirals. And when the admiral turned general levels up he gets admiral traits to choose from.
The change also allows admirals to be put in council positions that require a general.
It's worth comparing to what the wiki says about modding leaders. https://stellaris.paradoxwikis.com/Leader_modding (Note that the wiki article was written for version 3.0 and is likely outdated.)
The mod just adds a line to the admiral class that allow admirals to lead armies. It doesn't remove any line from generals.
Code:
admiral = {
name = admiral
name_plural = admiral_plural
description = admiral_description
can_lead_navy = yes
can_lead_army = yes
max_trait_points = 1
can_have_traits = yes
(...)
default_category = admiral
(...)
}
Code:
general = {
name = general
name_plural = general_plural
description = general_description
can_lead_army = yes
max_trait_points = 1
can_have_traits = yes
(...)
default_category = general
(...)
}
This lead to some interesting behavior. First, I was able to put admirals in charge of armies. However, this changed their icon to that of a general and their background becomes green. But they still show up as admirals in the leader window. What's more, if you try to look at just your generals it will show no owned leaders and the leader pool to hire from will be admirals. And when the admiral turned general levels up he gets admiral traits to choose from.
The change also allows admirals to be put in council positions that require a general.




It's worth comparing to what the wiki says about modding leaders. https://stellaris.paradoxwikis.com/Leader_modding (Note that the wiki article was written for version 3.0 and is likely outdated.)
Last edited: