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

Problem with Integers

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
For some reason this isn't working correctly and I don't understand why. I only want a specific unit to be able to carry one of these items. When I try to pick one up for the first time, it displays both messages and the unit drops the item. What's wrong???

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Topaz
    • (Owner of (Triggering unit)) Equal to Player 1 (Red)
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • TopazInt[1] Equal to 0
      • Then - Actions
        • Set TopazInt[1] = 1
        • Game - Display to (Player group((Owner of (Triggering unit)))) for 0.70 seconds the text: |cffffcc00Topaz Col...
      • Else - Actions
        • Game - Display to (Player group((Owner of (Triggering unit)))) for 0.70 seconds the text: You've already coll...
        • Hero - Drop (Item being manipulated) from (Triggering unit)
 
Status
Not open for further replies.
Top