View Full Version : How to make an unpurchaseable unit?

Feb 26, 2008, 01:00 PM
Hello anyone and everyone...

I want to do ONE THING...

I want to make a regular combat unit that can not be purchased by any nation...

..."what's the point?" you ask? I want to "gift" this unit when a tech is reached, but I want it to be one-of-the-kind that nobody else can have or get.

Is there a way to make this happen? A way to create this unit but not have it purchaseable? How would this be done (something in XML i'm sure, but I can't think of what).

Please help with this.

Feb 26, 2008, 01:48 PM
I think you can do it like the animals. Make the cost -1.

But if you just copy an animal tag you'll have to change other stuff as well

Feb 26, 2008, 01:56 PM
Yep, set cost to -1 and nobody can build it. :)

Feb 26, 2008, 02:26 PM
Yep, set cost to -1 and nobody can build it. :)
Ah cool... thanks!

Feb 26, 2008, 02:32 PM
Same applies to buildings and technologies (and anything else), by the way. Notice how the buildings that Great People build (Military Academy, Shrines) all have a cost of -1, but you can set them to construct those buildings as a special ability.

You can have an unresearchable tech (-1 cost), and have some event trigger giving it to a civ, or have a civ start off with that tech. The results are up to you: they can allow for a special unit only available with that tech, or some other type of bonus that you can think of.