- 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:
I have checked the trigger both in jass and gui, the loop is actually decent jass, but items remain untouched. Please help!
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)
-
-
I have checked the trigger both in jass and gui, the loop is actually decent jass, but items remain untouched. Please help!
