dylan140 said:I think maybe you should just fiddle with triggers. Now your starting to wish you could open angel of death!
Panto said:If there's only one item of each type, then the basic concept that you want to have is: whenever a hero picks up an item, check to see if he already has one. If he does, drop the item he picked up.
However, if you have multiple "breastplate"-type items, you'll want to make sets of items, and whenever an item is picked up, see if he as any of the set of items in his inventory, intead of just the one.
Fairly basic idea. Now get implementing!
Event - unit acquires item
Action -
for A = 1 to 6
if (level of (item carried by (manipulating hero) in slot (A)) == level of (item being manipulated) then
hero - drop (item being manipulated) from (manipulating hero)
else
do nothing
Raptor-- said:give each 'class' of items a different level (u could differentiate a different way, its up to u)
[/code]Code:Event - unit acquires item Action - for A = 1 to 6 if (level of (item carried by (manipulating hero) in slot (A)) == level of (item being manipulated) then hero - drop (item being manipulated) from (manipulating hero) else do nothing
randym4a1 said:Raptor-- said:give each 'class' of items a different level (u could differentiate a different way, its up to u)
[/code]Code:Event - unit acquires item Action - for A = 1 to 6 if (level of (item carried by (manipulating hero) in slot (A)) == level of (item being manipulated) then hero - drop (item being manipulated) from (manipulating hero) else do nothing
i tried those and make variable too,, these code you just given will drop item from all units, and this code its not wat he want,, he said duplicating items not item allowen,.
if it eazy as peoples said then there is no challengin to triggers editor
Event - unit acquires item
Action -
for A = 1 to 6
if ( (level of (item carried by (manipulating hero) in slot (A)) == level of (item being manipulated) ) and ( item being manipulated != item carried by manipulating hero in slot A ) then
hero - drop (item being manipulated) from (manipulating hero)
else
do nothing