Custom Buildings available for custom race only?

Hallo

 

Is it possible to make custom buildings only available to my custom race? 
Example: I've made a custom race, V_Bowmen.xml

I've also made some special buildings that should only be built by the Bowmen. The faction still uses the Kingdom/Amarian techtree for research. I just don't want the other races of Men I'm playing against to build these buildings. Where do I specify that only my Bowmen can build the buildings.

 

At the moment I'm just able to replace existing buildings, meaning that all Men can build them. This is OK for Mods like the City Stables (pasha_bigdog), because you want the other factions to use the horses as well (balance, etc).

But now I've made an Armory that unlocks special equipment/armor that I only want my Bowmen to use. I'm sure I can just make all the weapons unavailable to all the other factions of Men ( <SupportedUnitModelType>KingdomMale</SupportedUnitModelType> ), but it does seem like the long way of doing it?

Any ideas would be appreciated.

 

Another issue is that I have not figured out how to add a brand new research branch to the techtree, so at the moment the only prereq needed for the buildings is a specified City level.

Thanks in advance, have an Elemental weekend!

2,430 views 1 replies
Reply #1 Top

If you want the building to be available from the start, I would recommend that you prereq a technology, then add that technology as a race bonus to your custom faction (like master archers).

If you are using a unique RaceClassification in your faction, you can use a prereq race in your building.

Otherwise, you'll have to limit it by a unique technology that only your faction can research, and if you do that you'll also need to supply a unique tech tree.