• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

AI decision question

Status
Not open for further replies.
Level 2
Joined
Nov 8, 2007
Messages
6
How does the AI know if they are at a disadvantage, if the enemy is vulnerable, etc?

If the AI is fighting another army of an assortment of units, how does the AI know how much power each enemy unit has(therefore then deciding if to fight or run)? Is it point value? Level? Any other information regarding AI decision making(particularly custom melee AI) would be greatly appreciated.

My issue right now is that the AI runs from everything. Every time a unit gets attacked, that single unit runs(I disabled this completely but it would be nice to have on with moderation). Often, the AI retreats in the dumbest of ways, even if the battle is even or favored.

Thank you for your time :D
 
Status
Not open for further replies.
Top