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

[Solved] Drop Item

Status
Not open for further replies.
Level 22
Joined
Feb 3, 2009
Messages
3,292
For some reason in the bellow trigger the drop item actions don't work.
Any ideas?

  • Get Weapon Ultimate 2
    • Events
      • Unit - A unit enters Region 056 <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Owner of (Triggering unit)) controller) Equal to Computer
          • ((Owner of (Triggering unit)) Current gold) Greater than or equal to 5000
          • Or - Any (Conditions) are true
            • Conditions
              • AIProcess[(Player number of (Owner of (Triggering unit)))] Equal to 5
              • AIProcess[(Player number of (Owner of (Triggering unit)))] Equal to 6
    • Actions
      • Set AIProcess[(Player number of (Owner of (Triggering unit)))] = (AIProcess[(Player number of (Owner of (Triggering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AIProcess[(Player number of (Owner of (Triggering unit)))] Equal to 5
        • Then - Actions
          • Hero - Drop the item from slot 2 of (Triggering unit)
          • Hero - Drop the item from slot 4 of (Triggering unit)
          • Player - Add 1000 to (Owner of (Triggering unit)) Current gold
        • Else - Actions
      • Hero - Create Spear Of Great Knights and give it to (Triggering unit)
      • Player - Add -5000 to (Owner of (Triggering unit)) Current gold
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DEBUG Equal to True
        • Then - Actions
          • Game - Display to (All players) for 10.00 seconds the text: === Debug ===
          • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Triggering unit))) + bought an item for 5000 gold.)
        • Else - Actions
EDIT: Facepalm, I increase the variable before the condition instead of after it.
Solved.
 
Status
Not open for further replies.
Top