• 🏆 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] What's wrong with this trigger

Status
Not open for further replies.
Level 12
Joined
May 4, 2008
Messages
1,111
I have problem with this it makes everything crash when i test the map (when i do what the trigger sais)
  • antiduplicate
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Artifact
    • Actions
      • Set ANTICHEATITEM = (Item being manipulated)
      • Set ITEMPICKINGHERO = (Hero manipulating item)
      • Hero - Drop ANTICHEATITEM from ITEMPICKINGHERO
      • If (ANTICHEATITEM Equal to (Item carried by ITEMPICKINGHERO in slot 1)) then do (Item - Remove ANTICHEATITEM) else do (If (ANTICHEATITEM Equal to (Item carried by ITEMPICKINGHERO in slot 2)) then do (Item - Remove ANTICHEATITEM) else do (If (ANTICHEATITEM Equal to (Item carried by ITEMPICKINGHERO in slot 3)) then do (Item - Remove ANTICHEATITEM) else do (If (ANTICHEATITEM Eq
it keeps going scaning for every inventory slots
 
Level 6
Joined
Sep 4, 2007
Messages
157
  • For each (Integer A) from 1 to 6, do (Actions)
  • Loop - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Item-type of (Item carried by (Triggering unit) in slot Integer A))) Equal to (Item-type of (Item being manipulated))
  • Then - Actions
  • Item - Remove (Item being manipulated)
  • Else - Actions
 
Status
Not open for further replies.
Top