the AI should run an auto resolve of a battle before actually engageing in it, if the fake auto resolve doesnt come up in their favor, they should not attackmost of the improvements do seem to be simple If statements:
If player_unit_count > ai_unit_count then
.............status = dont_attack
elseif player_unit_count =< ai_unit_count then
.............status = attack
endif
this is an example, BUT it could be more complicated and other exploits created.
continuing with this example, the quality or type of troops is not included in any way, so a huge army of peasents could scare off a small but elite army. so then someway of rating the units in the army needs to be included (can you tell this is going to get complicated?)
Bookmarks