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

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