Ardenian
A
Ardenian
I quickly looked through some AI tutorials, but I don't get how I can write an AI for autocasting.
My aim is to make player-owned units automatically cast spells.
My current approach is to add all units of a type ( e.g. priest) to a unit group,
then periodically looping through all units of this unit group,
checking if they have enough mana and all other conditions are met ( like already has buff)
and then ordering the unit to cast the spell.
Is this how I write a good AI ?
I do not use the AI Editor, do I ?
My aim is to make player-owned units automatically cast spells.
My current approach is to add all units of a type ( e.g. priest) to a unit group,
then periodically looping through all units of this unit group,
checking if they have enough mana and all other conditions are met ( like already has buff)
and then ordering the unit to cast the spell.
Is this how I write a good AI ?
I do not use the AI Editor, do I ?