Setting up different unit styles for different nations

baal_isidro

Chieftain
Joined
Mar 5, 2006
Messages
37
Location
Berlin, Germany
Is it possible to replace units of certain nations without declaring them a "unique special unit" ?

For example :

I'm thinking about having the modernarmor tank in two camouflage versions. The woodland camo would be set for mainly european nations. The desert camo I would set for nations which are mainly located in desert areas like egypt, arabia ..

Could there be a condition written in Lua which says something like :

if civilization == "Egypt or Arabia or .." (replace: "modernarmor" with "modernarmor_desert")

Since I have to clue about programming in general, I hope here's someone who know how to do that.
 
no, not by nation.

but you can set unit like settler using an artstyle for multiple civs (ex : _ASIA, _AFRI, _AMER), for that you should set the tag "UnitArtInfoCulturalVariation" to 1 in the units table for the modern armor, and add new entry in Civ5ArtDefines_Units.xml and Civ5ArtDefines_UnitMembers.xml like it's already done for the settler unit.


(or you can just make a "unique special unit" copying all the caracteristic of the vanilla unit except graphism...)
 
Back
Top Bottom