Prereq of BuildingRequirement?

Hi all,

I am trying to create a new unit type that has an improvement type as a prereq.  I can use a faction trait or a tech as a prereq easy enough, but i'm having trouble setting an improvement type as as prereq.

Essentially what i'm after is.... Unit X can only be trained in a city if the city contains improvement X.  I have tried this:

<Prereq>

   <Type>BuildingRequirement</Type>
   <Attribute>My_Improvement</Attribute>
</Prereq>

But it doesn't seem to work :-(

Any ideas?

Thanks.

EDIT -> Doh, meant to post this in the Mod section.

3,822 views 3 replies
Reply #1 Top

Catapults used to work this way, so I know it's possible, but I'm not sure how. Try <Type>Improvement</Type>, maybe that works.

Reply #2 Top

Improvement requirements uses a tag by itself (not a prereq tag), something like this:

        <RequiredImprovement>My_Improvement</RequiredImprovement>

Reply #3 Top

Quoting Kalin, reply 2
Improvement requirements uses a tag by itself (not a prereq tag), something like this:

        <RequiredImprovement>My_Improvement</RequiredImprovement>

I thought this is only used for improvements (improvement b requires improvements a), not for units (unit b requires improvement a).