I Want to know how to make military units automatable.

Dandy_Man

Chieftain
Joined
Jan 9, 2006
Messages
7
In civ3 which i am an old modding veteran,it was just easy.It was alot harder to mod civ 4,and i've gotten basic modding skills on civ4 from "trail and error".

To make this clear,i want to automate military units to attack like the civ AI's have. I'd begun this by modifying the CIV4AutomateInfos.xml, and turning the worker automate build into:(of coarse the original worker automate is untouched)

- <AutomateInfo>
<Description>TXT_KEY_ACTION_AUTOMATE_ATTACK</Description>
<Help>TXT_KEY_ACTION_AUTOMATE_ATTACK_HELP</Help>
<HotKey>KB_Z</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<HotKeyAlt />
<bAltDownAlt>0</bAltDownAlt>
<bShiftDownAlt>0</bShiftDownAlt>
<bCtrlDownAlt>0</bCtrlDownAlt>
<iHotKeyPriorityAlt>0</iHotKeyPriorityAlt>
<Command>COMMAND_AUTOMATE</Command>
<Automate>AUTOMATE_ATTACK</Automate>
<bVisible>1</bVisible>
<Button>Art/Interface/Buttons/Actions/Automate.dds</Button>
</AutomateInfo>

It was a try,it might have worked but it didn't.I also modded other areas,about 3 to be precise,say the help txt link and others.

The unit AI in the unit infos XML was "AI_ATTACK". This feature would have looked like "Automate.dds" (of the worker) if my sceme would have worked.

So... I think the biggest problem is somehow makeing the order appear on the unit.I dont know how to put new mission on the unit command tab.

It was not there when i checked. I dont know what mechanism makes explore ,automate etc. appear on the unit missions tab.
 
Back
Top Bottom