So I had an idea awhile ago, if I removed the prec ability from Legionaries, they would throw both their pilums, and then enter battle, rather than just throwing one and charging. Also human players would be able to throw pilums, and then choose not to charge, making pilums much eaiser to use.
In the game against a slow moving unit like a phalanx this worked wonderfully , removing the prec ability from the export_descr_unit.text file made the AI legionaries throw both pilums before charging (I also increased pilum range to 50 from 35), and when a human player used the legionaries, pilums could be used far more effectively.
The problem was against fast/charging moving units, because removing the prec ability meant that the skirmish mode was turned on, the AI legionaries would run around like fools when enemy troops apporached. So I went into the descr_formations_ai.text file, changed all the heavy_pilum_infantry and light_pilum_infantry to heavy infantry and light infantry respectively and set the default_melee_state for those units to defend, but sometimes they still skirmish (perhaps they always skirmish, hard to know?).
So I'm wondering if someone who knows more about this can help engineer an AI that wouldn't skirmish (perhaps I'm not doing this properly?) by editing the formations text? This would really improve the game.
If anyone would like to replicate what I did, if it isn't clear above just ask.
Thanks.
Bookmarks