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

[Trigger] Why this trigger runs twice?

Status
Not open for further replies.
Level 9
Joined
Jul 10, 2011
Messages
562
hey guys...

im making a item restriction system at the moment but i ran into a strange problem.

this trigger shows the debug message twice when picking up an item and i just dont get why and how to solve it Oo

  • Recognize Item PickUp
    • Events
      • Unit - A unit Acquires An Item
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • (Item level of (Item being manipulated)) Equal to (==) (Integer A)
            • 'THEN'-Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • Multiple ConditionsAnd - All (Conditions) are true
                    • Conditions
                      • (Integer A) Less than/Equal to (<=) 8
                      • (Integer A) Unequal (!=) 4
                • 'THEN'-Actions
                  • Do Multiple ActionsFor each (Integer B) from 1 to (Load 0 of (Integer A) from ItemRestrictionTable), do (Actions)
                    • Loop - Actions
                      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Conditions
                          • (Load (Integer B) of (Integer A) from ItemRestrictionTable) Equal to (==) (GetUnitTypeId(GetTriggerUnit()))
                        • 'THEN'-Actions
                          • Game - Display to (All players) the text: works
                          • Skip remaining actions
                        • 'ELSE'-Actions
                • 'ELSE'-Actions
            • 'ELSE'-Actions
and before i get answer like 'do you have the trigger 2 times?' no its the only trigger running when an item is acquired.

thanks in advance

greetz clapto
 
Status
Not open for further replies.
Top