Civ Name Change During Game

Thorn

King
Joined
Jan 5, 2002
Messages
820
Location
Project Tic-Toc
Does anyone know if it is possible to change a Civ's name during a game?
Here's what I'm thinking about. When a Civ enacts a certain Civic (or more), it's name changes to something else. A basic example would be: if England enacts the State Property civic, it is renamed to People's Republic of England (and would show up that way on all screens/menus). Of course this will only work if there's enough room for the name I guess.
 
You're probably going to have to resort to the SDK. It's coded to either display:

1.) The leaderhead description (using GC.getLeaderHeadInfo(getLeaderType()).getDescription(uiForm))

or

2.) The player name (if the player is human).

I would think a mod to do this would need to look something like this (note that this will only change the player's name if it's a computer player):

Code:
const wchar* CvPlayer::getName(uint uiForm)
{
	if (isEmpty(gDLL->getPlayerName(getID(), uiForm)))
	{
		[b]// Commented out.
		// return GC.getLeaderHeadInfo(getLeaderType()).getDescription(uiForm);[/b]
		
		[i]Write code here to get name (or call a python function).[/i]
	}
	else
	{
		return gDLL->getPlayerName(getID(), uiForm);
	}
}
 
Back
Top Bottom