I was wondering how to make an item, to belong only to a certain player.
I tried this:
So as result i cant pick the item up at all, despite having player name as xxx
What did i do wrong?
I tried this:
Code:
-Events
A unit aquires an item.
-Conditions
(Item type of (item being manipulated)) equal to Sword of XXX
-Actions
If (All conditions are true) then do (Then Actions) else do (Else Actions)
-If Conditions
(Owner of(Hero Manipulating Item)) not equal to xxx [Variable Name: xxx .Variable type: Player .Initial Value: none]
-Then Actions
Game - Display to (All players) the text: This Item can be cant be used by you.
Hero - Drop (Item being manipulated) from (Hero manipulating item)
-Else
Do nothing
So as result i cant pick the item up at all, despite having player name as xxx
What did i do wrong?