random question, it might help, kindof related.
but when you first buy an item from a neutral shop. who is the owner?
does it set it to the person that buys the item or does it remain neutral.
iv never used this kindof system, so im curious.
but yea Opa all i know is that your going to have a condition somewhere that says:
-- (owner of (item being manipulated) is (owner of (hero manipulating item))
but with variables etc, but your idea will revolve around that.
--------
EDIT: okay i tested it. and an undeclared item is automatically clasified as Player 16. (which is Neutral Passive i think)
and there probably are better ways out there, but this is simple and works, i just tested it.
Trigger:
- Unit - A unit Acquires an item
- Set Temp_Unit = (Hero manipulating item)
- Set Temp_Item = (Item being manipulated)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of Temp_Item) Equal to Neutral Passive
- Then - Actions
- Item - Change ownership of Temp_Item to (Owner of Temp_Unit) and Retain color
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of Temp_Item) Not equal to (Owner of Temp_Unit)
- Then - Actions
- Hero - Drop Temp_Item from Temp_Unit
- Else - Actions
- Set Temp_Unit = No unit
- Set Temp_Item = No item
Variables:
~Temp_Unit - Unit Variable
~Temp_Item - Item Variable
Simple, but effective.
I thank you, sir.