PrereqBuilding as either A or B or C?

Spocko

Warlord
Joined
Dec 18, 2005
Messages
170
Location
Kittery, Maine
How can I define a unit's Prerequisite Building to be either A, B, or C? Specifically, In CvUnitInfos.xml, I'm trying to set the Assassin's prerequisite building to be either Palace, Versailles, Forbidden City, Scotland Yard, or Pentagon.

I can see that the relevant switch/variable is, for example:

<PrereqBuilding>BUILDING_PALACE</PrereqBuilding>

... but I can find no example (nor do I know of any such situation) where a unit can be built as long as there is one of say three other buildings available.

Thanks for your help!
Spocko
 
That sounds like a good addition, some kind of <OrPreRequisiteBuilding> flag that acts much in the same way OrPrerequisites for tecnology work.

Oh by the way dose anyone else think its silly for Scotlandyard to be an Offensive Spy Generating building, Its a Police Station if anything it should have some defensive ability like the Hunter Seaker Algorithm from SMAC. The KGB or MI5 should be the wonder that lets you build spies!
 
Back
Top Bottom