View Full Version : <SpecialBuildingNotRequireds> XML tag help


tsentom1
Jul 22, 2008, 06:30 PM
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!!!

Dryhad
Jul 23, 2008, 01:00 AM
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:

<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>

tsentom1
Jul 23, 2008, 02:14 PM
Hmm, I thought I had checked and it still didn't work. I'll double check when I get home.

Thanks!

tsentom1
Jul 23, 2008, 03:36 PM
Yeah, it worked. I feel kinda dumb now :lol:

thanks again