• 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.

AI picking items from ground

Status
Not open for further replies.
Level 7
Joined
Feb 27, 2010
Messages
184
I have a map (hero arena), where you go with your heroes through map, find runes or kill some monsters which will drop coins, whatever. also, it has some poor AI - but the main thing that irritates me - they dont pick up items. I need a trigger or something that will force them to do it - something like "a hero can see an item on the ground - he picks it" :) i tried it few times but it didnt work.
 
Level 5
Joined
Apr 22, 2011
Messages
152
The order must be to "right click an item". The target item may be a random item in area around hero. And you might check it every N seconds of the game. It's imperfect but it works, try it.
I may give you an example later if you need it.
 
Level 5
Joined
Apr 22, 2011
Messages
152
I made a testing map for you. Here's two heroes - human's and AI. AI hero stumbles around and picks up items when he comes near. Items are spawning randomly around the map. Check it out!
Sorry for not just attaching the trigger - I have russian version of WE so you might not understang anything...
 

Attachments

  • testing map.w3x
    16.5 KB · Views: 85
Status
Not open for further replies.
Top