Re: Scripting unit\'s actions
If you give your unit an order to "attack", you're telling him : don't was time casting spells, just attack
With this order the unit will neitheir cast spells nor fire ranged weapons.
You could give him as orders something like 'attack one turn' (to have him advance), maybe 2 times if the commander is slow or the ennemy is far away, and then you change him tocast spells.
If the commander is not a mage and has only the item spell available, it will cast it as often as possible. Note however that with ennemy in melee range there's a chance your commander will react and attack in melee sometimes instead of casting the spell. You can also just don't give any general order to the commander after the first (up to) 5
, and let you commander decide each round what to do.
|