New Units <-> AI

Hawk66

Chieftain
Joined
Nov 12, 2005
Messages
2
Hi folks,

I plan to create new units for Civ4, but I'm wondering if the AI can properly use them without modification. The units are mainly variants of existing units, so they mainly differ by their attributes and not by new behaviour.

Does anybody know if this is the case? Or have I to wait for the AI-SDK (I think the Pyhton API is not sufficient for this task, or is it?)

Thanks :)
 
xml should be enough I think. Just have a look in the Civ4UnitInfos.xml. Every unit has something like this:

PHP:
<UnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_RESERVE</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_COUNTER</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_COUNTER</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
			</UnitAIs>
 
I'am not sure if XML is enough. Wih those XML entries the AI is able to build the new units i guess, but is the AI able to handle those new units ? Unless we can not mod the AI we can only try out ...
 
.xml will be enough. Unless you come up with a completely new type of unit the AI will be able to handle it. The bits Surtur posted are the AI bits I think, suggesting to the AI what role the units fit in to.
 
Back
Top Bottom