So You can change leaders midgame

Ewok-Bacon-Bits

Warlord
Joined
Oct 23, 2016
Messages
169
Have there been any threads on this? I only tried this in the UI context but apparently this works perfectly fine you can just switch leaders (including the bonuses they give) with any civ at any point of the game with this code:

Code:
local playerConfig = PlayerConfigurations[0];
playerConfig:SetLeaderTypeName("LEADER_BARBAROSSA");

I just wanted to make this known I'm not sure if I missed another discussion on this because it seems like an interesting feature.
 
Thank you, I think there was one asking if this was working, but I don't remember if someone actually tried it.

is the graphical engine handling it ?
 
Yes all leader animations and icons are working the same, it doesn't change the color of the civilization but it does set a new icon for the civilization for whomever the leader is so in this case Germany but the icon keeps the colors of say Rome.
 
Back
Top Bottom