• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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