• 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] buy items!!

Status
Not open for further replies.
Level 13
Joined
Jul 16, 2012
Messages
679
:) Okay I have Example for you

Shop
  • Untitled Trigger 001
    • Events
      • Unit - A unit comes within 256.00 of Put Here Your Shop
    • Conditions
      • ((Owner of (Triggering unit)) controller) Equal to Computer
    • Actions
      • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - Put Here Your Item Cost)
      • Hero - Create Put Here Your Item and give it to (Triggering unit)
 
Level 18
Joined
May 11, 2012
Messages
2,103
:) Okay I have Example for you

Shop
  • Untitled Trigger 001
    • Events
      • Unit - A unit comes within 256.00 of Put Here Your Shop
    • Conditions
      • ((Owner of (Triggering unit)) controller) Equal to Computer
    • Actions
      • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - Put Here Your Item Cost)
      • Hero - Create Put Here Your Item and give it to (Triggering unit)

you're missing gold check and do they already have an item and what are they combining and many more things..
 
Status
Not open for further replies.
Top