• 🏆 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!

[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