johnnymra
New Member
- Reaction score
- 14
I know this kind of topic has been posted before but all those i've read didn't help me ...
In my map there are 2 teams - say A and B.
I want to make it so that there would be a type of items for A and a type for B.
If a hero from B picks an item of the type he should be able to carry, he will keep it. But if he picks up an item of another type he should drop it.
I'm using the trigger:
The problem is... those in team B can still wear items that they shouldn't. I used miscellaneous type for the items they should wear, and all the other types would be those they mush drop... but they don't drop them .
For team A i didn't test if they drop the miscellaneous type items yet... but i want to fix for team B first.
In my map there are 2 teams - say A and B.
I want to make it so that there would be a type of items for A and a type for B.
If a hero from B picks an item of the type he should be able to carry, he will keep it. But if he picks up an item of another type he should drop it.
I'm using the trigger:
Code:
Item disabling
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Hero manipulating item)) is in Shifters) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Item-class of (Item being manipulated)) Equal to Permanent
(Item-class of (Item being manipulated)) Equal to Charged
(Item-class of (Item being manipulated)) Equal to Powerup
(Item-class of (Item being manipulated)) Equal to Artifact
(Item-class of (Item being manipulated)) Equal to Purchasable
(Item-class of (Item being manipulated)) Equal to Campaign
Then - Actions
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item being manipulated)) Equal to Miscellaneous
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - Actions
For team A i didn't test if they drop the miscellaneous type items yet... but i want to fix for team B first.