• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Why is this trigger not working?!

Status
Not open for further replies.
Level 4
Joined
Sep 8, 2008
Messages
73
I have made a trigger that is suppose to remove all items from triggering units inventory while adding them to a "stash" unit for temporary storage.
It kind of looks like this:

  • Enter
    • Events
      • Unit - A unit enters Entrance <gen>
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Hero - Create (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) and give it to Player_Stash[(Player number of (Owner of (Triggering unit)))]
          • Item - Set charges remaining in (Last created item) to (Charges remaining in (Item carried by (Triggering unit) in slot (Integer A)))
          • Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
      • Unit - Move (Triggering unit) instantly to TempPoint
      • Custom script: call initFight()
      • Custom script: call RemoveLocation(udg_TempPoint)
But the items are never removed!!
I have checked the trigger both in jass and gui, the loop is actually decent jass, but items remain untouched. Please help!
 
Status
Not open for further replies.
Back
Top