Dynamic names

Kingdom/Queendom and a couple of others were asked for but I can't remember which now. It was only a couple and that example was the least of them (but the only one I can recall and probably spell too).
 
Queendom sounds like something feminists would come up with. Queen Victoria ruled the United Queendom or UQ for short :lol:. I have never heard that word before and to my knowledge all kingdoms claim themselves to be kingdoms even when ruled by queens. I would think negatively about a mod actually using such lame terms and I still can't think of any valid reason to change the name of a civ based on the leader gender. Leader title is very valid to be based on gender, but not really the name of the civ itself.
 
Hopefully, here it is, with setCivName. It's a working dll but I did not test the Python function.

You might need more than just that, but that's largely enough for me for today... :(

Code:
	def onBeginPlayerTurn(self, argsList):
		'Called at the beginning of a players turn'
		iGameTurn, iPlayer = argsList
## Dynamic Civ ##
		pPlayer = gc.getPlayer(iPlayer)
		pPlayer.setCivName("AAA", "BBB", "CCC")
## Dynamic Civ ##

Didn't work though, Inca remains as Inca.
 
Sorry about that. Should be better now. No more Incas. Meet the AAA.
 

Attachments

Dynamic Civ Names

Code:
	## All other civilizations not listed below ##
	"CIVILIZATION_OTHERS":[				[["RELIGION_HINDUISM"],								## Requires Hinduism Only
							["TXT_KEY_PEDIA_CATEGORY_BUILDING", "TXT_KEY_PEDIA_CATEGORY_BUILDING", "TXT_KEY_PEDIA_CATEGORY_BUILDING"]],

							[["CIVIC_DESPOTISM", "RELIGION_NONE"],						## Requires Depotism and No State Religion
							["TXT_KEY_PITBOSS_TEAM", "TXT_KEY_PITBOSS_TEAM", "TXT_KEY_PITBOSS_TEAM"]],	## Desc, Adj, Short

							[["VASSAL_FALSE"],								## Not a Vassal
							["TXT_KEY_INFO_SCREEN", "TXT_KEY_INFO_SCREEN", "TXT_KEY_INFO_SCREEN"]],
				],

	## Specific Civilizations ##
	"CIVILIZATION_ROME": [				[["RELIGION_HINDUISM", "ERA_MODERN", "CIVIC_DESPOTISM"],			## Requires Hinduism, Modern Era AND Depostism Civics
							["TXT_KEY_CONCEPT_CITIES", "TXT_KEY_CONCEPT_CITIES", "TXT_KEY_CONCEPT_CITIES"]],

							[["ERA_MODERN"],
							["TXT_KEY_CONCEPT_EVENTS", "TXT_KEY_CONCEPT_EVENTS", "TXT_KEY_CONCEPT_EVENTS"]],
				],
	"CIVILIZATION_SPAIN": [				[["RELIGION_HINDUISM"],
							["TXT_KEY_CONCEPT_WONDERS", "TXT_KEY_CONCEPT_WONDERS", "TXT_KEY_CONCEPT_WONDERS"]],
				],

A) Civs change names based on:
1) State Religion or No State Religion
2) Civics
3) Vassal State or Non Vassal State
4) Current Era

B) You can state individual conditions for civilizations specifically, or simply use "CIVILIZATION_OTHERS" to apply to every other civilizations.

C) Priority of Conditions is top to bottom.

D) Requirements can be single like Spain: Hinduism.
Or it can have multiple requirements like Rome: Hinduism, Modern Era and Depotism
 
:goodjob:

But I think that I can already hear people asking for a good guide on how to use it... :confused:

PS: You should include the source files. Thank you for the credit, but I don't deserve it. I just provided you with a simplified dll, the code is still from jdog5000.
 
That's better!

Is 3 requirements the upper limit?
 
No upper limit.
Can probably add more definitions like golden age and anarchy.
 
Actually, I don't really understand the need to change the Civ short description or adjective. Whether it is the Roman Empire, Roman Queendom or Roman Tribe, it is still Rome and Romans, no? But that's up to the user of this Mod comp to tell you.

Also, have you taken into consideration the fact that there is a need for the Desc to be partly repetitive, like: Kingdom of Rome, Kingdom of Greece, Kingdom of Persia?

Oh and is there not an error in the name, as it should be Desc-Short-Adj in that order according to the dll?
 
Actually, I don't really understand the need to change the Civ short description or adjective. Whether it is the Roman Empire, Roman Queendom or Roman Tribe, it is still Rome and Romans, no? But that's up to the user of this Mod comp to tell you.
I agree with that statement. However perhaps a bit naively in a case like this I assume people have some great ideas and I just totally miss the point. I do want mod development to progress, but at the same time I wish it would focus on something a bit more interesting for the gameplay than this one.
 
Version 3:

Code:
##################################################################################################
###					Conditions						##
## Religions:	"RELIGION_HINDUISM":	Requires Specific Religion       			##
##		"RELIGION_NONE":	Requires No State Religion       			##
## Civics:	"CIVIC_DESPOTISM":	Requires Specific Civics				##
## Era: 	"ERA_MODERN":		Current Era >= Specific Era				##
## States:	"STATE_GOLDEN":		Golden Age						##
##		"STATE_ANARCHY":	Anarchy							##
##		"STATE_VASSAL":		Vassal States						##
##		"STATE_MINOR":		Minor Civ						##
##		"STATE_BARBARIAN":	Barbarian						##
## Cities:	"CITY_MAX_050":		At Most 50 Cities					##
##		"CITY_MIN_020":		At Least 20 Cities					##
##################################################################################################
###					Name Change						##
## [Prefix, Desc, Short, Adj						   			##
## Prefix will be added in front of Desc and Short			     			##
## ["AAA", "", "", ""] will just add a Prefix of "AAA" without changing the rest			##
## ["", "BBB", "CCC", ""] will just change the Desc and Short without changing Adj		##
##################################################################################################

1) Added Golden Age, Anarchy, etc
2) Added Min/Max Number of Cities
3) Added a new item called Prefix, which can be added to Desc and Short
So usually China is simply "Chinese Empire", but during Golden Age, it can become "Great Chinese Empire"
4) Fix the names of variables, Desc, Short, Adj
5) Included source files for dll
6) Can now change just Desc or Short without affecting the rest

P.S.
There may be people who like evolution of civs, such as Siam => Thailand, so Siamese become Thais.
 
Oooh, this looks awesome, thanks a lot (though I still need to figure out how to compile .dll's and all, but eh, I haven't been playing Civilization IV the past week or two anyway)!

Could you add a weight modifier or such? For example, should Rome have the government civic 'Meritocratic Oligarchy', I can think of the following names that would all be equally valid:

Oligarchy of Rome, Meritocracy of Rome, Meritocratic Oligarchy of Rome, Roman Oligarchy, Roman Meritocracy, Roman Meritocratic Oligarchy, Oligarchic Rome, and Meritocratic Rome.

And to go a step further, perhaps an option to...

Well, imagine Rome is an 'Absolute Monarchy' and also has 'Serfdom'. 'Absolute Monarchy' would make the following names valid:

Absolute Monarchy of Rome, Monarchy of Rome, Kingdom of Rome, Roman Absolute Monarchy, Roman Monarchy, Roman Kingdom, and Monarchist Rome.

But any kind of monarchy and 'Serfdom' combined could result in names such as (just making this up as I go here) 'Feudal Kingdom of Rome'. Yet, this should be just another option, to add to the above list of options; not every monarchy with serfdom should be called 'Feudal Kingdom of Rome'.

And how about culture rankings? Nations with a high culture level (relative to others - the nations with a culture level better than half of the world, so to say (so five out of ten nations)) could get the prefix 'Great' or 'Glorious', and the top 10% or so could have 'Cultured' or 'Enlightened' or such? Then again, I suppose you could add the prefix 'Militaristic' to those with a high power level, and ever so on (science levels - 'Wise', 'Scientific', also 'Enlightened' perhaps), peacefulness - 'Benevolent', 'Pacifist', 'Peaceful'...), and that's probably going way too far.

But I think some kind of weight modifier - so that you can create lots of options and lots of diversity - would be useful?
 
Naturally once you have the technology for propaganda you would want to call yourself "the Glorious and Benevolent Republic of X" no matter what civics you are running:mischief:
 
Given a set of conditions, there will only be one result.
If you feel that given those conditions, 3 results are valid, then add a new condition to differentiate them.

For instance, Running Depo can yield A, B or C
Depo + Hindu = A
Depo + Tao = B
Depo + Neither H or T = C

The purpose of this mod comp is to simplify the disastrous existing mess. No need to complicate it and end up in the same mess that nobody can understand how to edit.
 
Back
Top Bottom