Hi,
I have a 'shop', that is just there for the looks. It's a unit with an inventory.
If a player clicks on it, the personal 'item forge' of the respective player is selected. On this forge players can combine and upgrade items, and I want everybody to have his own private forge.
That all works fine, but I also want the items given to that dummy to be given to the correct forge.
I have put the forges in an array from 1 - 6, (I got 6 players in my map.)
However, giving an item to the dummy, by any player, just gives the item to the forge of player 1. I think that's because '(Previous owner)' is wrong. However, I just can not find how to refer to the previous owner of an item :s.
How can I make this work?
I have a 'shop', that is just there for the looks. It's a unit with an inventory.
If a player clicks on it, the personal 'item forge' of the respective player is selected. On this forge players can combine and upgrade items, and I want everybody to have his own private forge.
That all works fine, but I also want the items given to that dummy to be given to the correct forge.
I have put the forges in an array from 1 - 6, (I got 6 players in my map.)
However, giving an item to the dummy, by any player, just gives the item to the forge of player 1. I think that's because '(Previous owner)' is wrong. However, I just can not find how to refer to the previous owner of an item :s.
How can I make this work?
-
ItemPushThrough
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Triggering unit) Equal to Soulforge Clickable 0037 <gen>
-
-

Actions
-


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
-






(Integer A) Equal to (Player number of (Previous owner))
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Number of items carried by SoulForgeArray[(Integer A)]) Not equal to 3
-
-







Then - Actions
-








Hero - Give (Item being manipulated) to SoulForgeArray[(Integer A)]
-
-







Else - Actions
-








Hero - Give (Item being manipulated) to HeroArray[(Integer A)]
-
-
-
-





Else - Actions
-
-
-
-
-




