HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger to remove all items from unit?

07-15-2004, 08:23 PM#1
HexenLordX
I know this is stupid, but I can't find a trigger to remove all items from a hero. Any help?
07-15-2004, 08:41 PM#2
Vexorian
For each integer a from 1 to 6
- Item - Remove ( Item in (unit) 's slot integer A)
07-15-2004, 08:53 PM#3
HexenLordX
one more thing while I'm at it. I created a trigger that won't let a user carry two of the same items. Here's what I did:

Code:
No 2 Items
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Triggering unit) has (Item being manipulated)) Equal to True
    Actions
        Hero - Drop (Item being manipulated) from (Triggering unit)

All this does is make me drop any items I pick up. Any ideas?
07-15-2004, 08:58 PM#4
Vexorian
The event firs after the unit gets the item, so you need:

For Each integer A from 1 to 6 do :
- If Conditions are true:
Item Comparission Item in Slot (integer A) not equal to Item being manipulated
Item Type Comparission: Item type of Item In Slot Integer A equal to ITem Type of being manipulated
Then
Hero - Drop Item being manipulated
07-19-2004, 06:20 AM#5
BuRnInSpartan
are you still lost?
07-19-2004, 06:27 AM#6
HexenLordX
No this was solved days ago.. and works beautifully. Thanks anyway.