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

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.
Top