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