• 🏆 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] Ids problems.

Status
Not open for further replies.
Level 2
Joined
Apr 28, 2011
Messages
15
Why isnt this working?

  • ids trigger
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Set Item = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item level of (Item being manipulated)) Equal to 1
        • Then - Actions
          • For each (Integer Item_Slot) from 1 to 6, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item level of (Item carried by (Hero manipulating item) in slot Item_Slot)) Equal to 1
                • Then - Actions
                  • Set Item = (Item + 1)
                • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Item Greater than 1
            • Then - Actions
              • Game - Display to (All players) the text: You can only carry ...
              • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item level of (Item being manipulated)) Equal to 2
            • Then - Actions
              • For each (Integer Item_Slot) from 1 to 6, do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item level of (Item carried by (Hero manipulating item) in slot Item_Slot)) Equal to 2
                    • Then - Actions
                      • Set Item = (Item + 1)
                    • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Item Greater than 1
                • Then - Actions
                  • Game - Display to (All players) the text: You can only carry ...
                  • Hero - Drop (Item being manipulated) from (Hero manipulating item)
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item level of (Item being manipulated)) Equal to 3
                • Then - Actions
                  • For each (Integer Item_Slot) from 1 to 6, do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Item level of (Item carried by (Hero manipulating item) in slot Item_Slot)) Equal to 3
                        • Then - Actions
                          • Set Item = (Item + 1)
                        • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Item Greater than 3
                    • Then - Actions
                      • Game - Display to (All players) the text: You can only carry ...
                      • Hero - Drop (Item being manipulated) from (Hero manipulating item)
                    • Else - Actions
                • Else - Actions
  • potion stack
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Potion of Greater Healing
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Hero manipulating item) has an item of type (Item-type of (Item being manipulated))) Equal to True
          • (Item being manipulated) Not equal to (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated)))
        • Then - Actions
          • Item - Set charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated))) to ((Charges remaining in (Item carried by (Hero manipulating item) of type (Item-type of (Item being manipulated)))) + (Charges remaining in (Item being manipulated)))
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Item - Remove (Last dropped item)
        • Else - Actions
 
Status
Not open for further replies.
Top