non-buildable units

wotan321

Emperor
Joined
Oct 25, 2001
Messages
1,228
Location
NC, USA
I know this has been explained before, and I just don't know where to make the change.

How can I have a unit no one can build? I want to give a few out there at the start of the scenario, but I don't want any built in-game.

Thanks for any help.
 
A cost of -1 also means you won't be able to upgrade to these units. There was some discussion about this before the SDK, but we decided it wasn't easily fixable. Kael may have a fix using the SDK for FFH... or he may have abandoned the idea long ago and forgotten about it.
 
The Great Apple said:
A cost of -1 also means you won't be able to upgrade to these units. There was some discussion about this before the SDK, but we decided it wasn't easily fixable. Kael may have a fix using the SDK for FFH... or he may have abandoned the idea long ago and forgotten about it.

No we have the sdk fix for it and we have units you can only upgrade to but cant build. They also have a minimum level. So the only way to get an archmage is to upgrade a level 6 or higher mage to one.
 
Kael said:
No we have the sdk fix for it and we have units you can only upgrade to but cant build. They also have a minimum level. So the only way to get an archmage is to upgrade a level 6 or higher mage to one.

I'd like to see that change. Is it in FFH1 or FFH2?

Roger Bacon
 
Lord Olleus said:
change the cost of the unit in CvUnitInfos.xml to -1. The same goes for buildings and techs.
Thats wrong. A negative cost is interpreted as it's positive counterpart, for example -1 will be 1. For techs you'll have to set bDisable to 1.
 
RogerBacon said:
I'd like to see that change. Is it in FFH1 or FFH2?

Roger Bacon

FfH2 only. I did it by adding a new attribute to units called iMinLevel. If it is set to anything other than 0 then the unit isn't buildable and units have to be at least that level to be upgraded to it. So a 1 would mean that any unit could be upgraded to it (that had it as an upgrade) but it couldn't be built.

In the screen shot you can see a unit that can only be made by upgrading a level 6 or higher level unit into it.
 
Back
Top Bottom