• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

AI buy items and use it.

Status
Not open for further replies.
If you're importing an A.I. then use the A.I. API that gives a little more flexibility on the matter. If you however, doing what I imagine and have some custom hero that you want to buy and use, then you need something else.

Whatever the issue, you can likely fix it by putting event checks to determine when an A.I. is doing something near a shop or close to a shop and you want to override existing orders and have him go buy and use something appropriate. Or you could check the resource amount of the owning player. Or you could just do it intervals and have the A.I. go to the shop every so seconds.

Point being, you need to generate a detection in order to proc actions. The actions of course being "Move-to", "Purchase", "Use", "Continue-with-previous-action-queue".
 
Status
Not open for further replies.
Back
Top