Modular Units In BTS How do I do it?

Healz

General
Joined
Jun 11, 2002
Messages
954
Location
Maryborough, Australia
Now I realize there is a thread for requesting tutorials and how-to-dos in the Creation and Customization thread. My problem is that no-one seems to be able to tell me exactly how to do the coding for adding in modular units without adding in new civs. I thought one of your contributors could give me some information about this and maybe turn into a tutorial for others like me that may have units we like that don't exist in WOC.
Thank-you, Healz.
 
Ok, basically there are two separate things which you could mean here imo

a) create a new unit entirely, like e.g. a stealth fighter (new unit class, new unit, new unit art, available to all civs)

b) use a different graphic for an existing unit and civ like a mayan swordsman

I assume you mean b) as a) is no different from what you would do in regular modular CIV, so I will answer b) :)

- you define the unit art as in modular CIV
- you create a CIV4UnitArtStyleTypeInfos.xml just for that unit art and civ

Example :

Spoiler :
Code:
		<UnitArtStyleTypeInfo>
			<Type>UNIT_ARTSTYLE_AZTEC</Type>
			<StyleUnits>
				<StyleUnit>
					<UnitType>UNIT_AXEMAN</UnitType>
					<UnitMeshGroup>
						<EarlyArtDefineTag>ART_DEF_UNIT_AXEMAN_AZTEC</EarlyArtDefineTag>
						<LateArtDefineTag>ART_DEF_UNIT_AXEMAN_AZTEC</LateArtDefineTag>
						<MiddleArtDefineTag>ART_DEF_UNIT_AXEMAN_AZTEC</MiddleArtDefineTag>
					</UnitMeshGroup>
				</StyleUnit>
			</StyleUnits>
		</UnitArtStyleTypeInfo>

I hope this is what you were looking for ;)
 
Top Bottom