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

[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