Different flags for city centers per civilization

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Different flags for city centers per civilization

Post by Gonzalo »

Hi friends, the old question...how to make a new Area Effect which attachs new visual flag for every country TO THE SAME TAG of the city center? I have tried by adding two new pieces of area effects code for english and german for epoch 12, two different flags, same tag or pole for the city center model, but eventually both flags appear on every western city center of epochs 10-13. Here is my code:

(In db/AreaEffects/dbareaeffects_regional.ddf)

Code: Select all

DbAreaEffectInfo RegionPowerGerman_12
{
	name = tx_rarea_GermanFlag_name
	desc = tx_rarea_GermanFlag_desc	
	effects = [
		EffectButton {
			range = Global
			Player = German
			Mask = CityCenter
			limitToOneUnit = false
		}
		EffectVisualFlag {
			range = Global
			Player = German
			Mask = CityCenter
			RallyFlag = TheGermanFlag_02
			OwnerOnly = true
		}
	]
}

DbAreaEffectInfo RegionPowerEnglish_12
{
	name = tx_rarea_EnglishFlag_name
	desc = tx_rarea_EnglishFlag_desc	
	effects = [
		EffectButton {
			range = Global
			Player = English
			Mask = CityCenter
			limitToOneUnit = false
		}
		EffectVisualFlag {
			range = Global
			Player = English
			Mask = CityCenter
			RallyFlag = TheGermanFlag_02
			OwnerOnly = true
		}
	]
}
and in db/Techtree/regionpower_upgrades.ddf:

Code: Select all

UpgradeRegionPower RegionPowerUpgradeGerman_12
{
	regionPowerName = "RegionPowerGerman_12"; 
	requiredRegion = German;
	rechargeTime = 1;
	//icon = "icon_regionpower_tradesanctions";
	verboseTooltipIndex = text_rarea_GermanFlag_desc;
	duration = 60000;
}

UpgradeRegionPower RegionPowerUpgradeEnglish_12
{
	regionPowerName = "RegionPowerEnglish_12"; 
	requiredRegion = English;
	rechargeTime = 1;
	//icon = "icon_regionpower_tradesanctions";
	verboseTooltipIndex = text_rarea_EnglishFlag_desc;
	duration = 60000;
}
Any help would be...as always, appreciated... :(

User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Different flags for city centers per civilization

Post by Dr.MonaLisa »

The problem is that models in EE2 use suffixes like _we, _ma, _fe. They're for the regions, not for the civilizations.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Re: Different flags for city centers per civilization

Post by Gonzalo »

Yes, that's the problem in fact. I want to make ONE only city center which changes flag when it's successfully assailed and which can bear different flag for every civ...not a lot of models of city center.

Added after 2 hours 42 minutes 30 seconds:
One city center for region I mean
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Different flags for city centers per civilization

Post by Dr.MonaLisa »

Wasn't it already discussed here? viewtopic.php?f=54&t=5189

The thing you want could be done, if you made a separate Unit Type of a city center for each civilization, for each epoch. Then you would need to set the correct .nif models for each new Unit Type, then put all new CityCenter Unit Types to the correct section in dbunittypeattributes.ddf and pray that it works for claiming-territory behaviour. Then you would need to add all tech-tree bonuses to the new city center unit types, then add them as new units in techtreenode and upgradeset file (not giving correct names, because I don't even see it at the moment) for each civilization.
Not worth it. The game engine allows separate models depending on region, not civilizations.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Post Reply

Return to “Questions”