So you want heroes to only be able to hold one copy of each item? Use something like this:
Trigger:
- Trigger
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- Set Integer = 0
- 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
- Set Integer = (Integer + 1)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Integer Greater than or equal to 2
- Then - Actions
- Hero - Drop (Item being manipulated) from (Triggering unit)
- Else - Actions
Well that's much easier to do. Just modify the Inventory (Hero) Ability to only have 1 item-slot.
You need to explain. Ryushi gave you a method to check items, and you said you meant something else, so...? :s
Yes, and Ryushi answered that question, so why did you say 'no I meant only with one item'? Just trying to understand...
Coz 2 items of same item are not meant to be all the items of the map ,but only one.