• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] What's wrong with this trigger

Status
Not open for further replies.
Level 12
Joined
May 4, 2008
Messages
1,105
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
 
  • 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
 
still crash... what could be wrong? if i leave it in inventory it jsut drops it but if i make it go out of inventory it crashes
 
i said i dont want DUPLICATES i want if its duplicated to die but if i make it scan the area it die no matter what
 
Status
Not open for further replies.
Back
Top