<SpecialBuildingNotRequireds> XML tag help

tsentom1

Bubble Dragon
Joined
Jul 24, 2007
Messages
1,000
Location
New York
So for a future mod, I wanted to create a civic that allows me to create the Clone units from Next War (Clones, Automatons, Cyborgs) without needing to build their required building (Cloning Factory).

I thought this would be easy and just followed the Organized Religion example. I gave the Cloning Factory a special buildings tag and then set <SpecialBuildingNotRequireds> to not require the new special building.

However, this always results in the civic "Allowing you to build Missionaries without need of a Cloning Factory" which of course does nothing.

Is this XML tag specifically tied to missionaries or is there a way I can set another unit (or if not, at least a way I can accomplish what I'm trying with XML before I waste a couple of days to see if I can get it done in Python)

Thanks for any help!!!
 
Uh, I think you're putting a little too much faith in the text. If you try, you should find you're able to build your clones just fine. To make it so the text doesn't talk about missionaries, just change TXT_KEY_CIVIC_BUILD_MISSIONARIES

I used:

Code:
	<TEXT>
		<Tag>TXT_KEY_CIVIC_BUILD_MISSIONARIES</Tag>
		<English>[ICON_BULLET][COLOR_BUILDING_TEXT]%s1_Building[COLOR_REVERT] is not required to build special units</English>
	</TEXT>
 
Hmm, I thought I had checked and it still didn't work. I'll double check when I get home.

Thanks!
 
Back
Top Bottom