• 🏆 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 Item Help

Status
Not open for further replies.
Level 9
Joined
Dec 26, 2010
Messages
475
hey guys i need help, can someone teach me how to make a AI buy only one item?
here's my trigger:
  • AI Buy Killer Blades
    • Events
      • Unit - A unit enters Reveal base team 1 <gen>
      • Unit - A unit enters Reveal base team 2 <gen>
    • Conditions
      • ((Owner of (Triggering unit)) controller) Equal to Computer
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is paused) Equal to False
          • ((Owner of (Triggering unit)) Current gold) Greater than or equal to 6600
          • (Item carried by (Triggering unit) in slot 3) Not equal to (Item carried by (Triggering unit) of type Killer Blades)
        • Then - Actions
        • Else - Actions
          • Hero - Create Killer Blades and give it to (Triggering unit)
          • Player - Add -6600 to (Owner of (Triggering unit)) Current gold
          • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Order (Triggering unit) to Attack-Move To AITeamPoint[0]

i need help! +Rep
:ogre_haosis: :ogre_haosis:
 
Status
Not open for further replies.
Top