How do I make a unit only available for one culture?

CurryAztec

Uncle Hồ
Joined
Dec 9, 2008
Messages
182
How do I make a unit only available for one culture? For example, there is only one type of musketman. But what if I want to make an African one, only for Africans? I mean without making it their UB. Kinda like by ethnically, automatically. I can't figure out how to. If someone knows a way on how to, please tell me.


Thanks.
 
Do you mean just visually, or with actually different stats?
Visually is slightly more complicated: they are generally known as flavor units.
 
For different stats you can always make civ lists and use Cantrain / CanNotTrain in the GameUtils python and assign units to only certain lists of civs. It's probably possibly to call what Unit Art Style the civ does as well, so you could probably associate it with that (though I've never tried this).

For just visually you simply use the CIV4UnitArtStyleTypeInfos XML file.
 
well I mean just visually as yea, flavour units. is there some way to do it just with xml and art? No python involved? Because I do not know how to do python yet. :p

Visually you only need to really edit the CIV4UnitArtStyleTypeInfos XML (besides of course using UnitArtDefines to define the graphics).
 
well i did as u sugested, but then when i go into the game, i play as a country of that culture, then it shows up this screen that is manilla and is blank and says "Technology Advisor" And then it goes into the game, then theres no bottom interface tab or w/e its called where u build stuff and move units and fortify em and all that stuff. Where did I go wrong :(
 
Back
Top Bottom