- Joined
- Mar 25, 2008
- Messages
- 2,955
Hi, it's me again ^^
This time i seek help concerning a system to sell all units of a player after he left.
It should be like:
Event: Player x leaves
Conditions:
Actions:
-Pick every unit in Playable Map area owned by Player x and do (actions):
Loop - actions:
--Set all_towers = Point value of picked unit
--Add all_towers to Player x's gold
--Kill all units in Playable Map area owned by Player x
(after that, the gold player x has is spread to all left players)
The problem is, after player x leaves, player y gains control over the units he left on the field and as result, the trigger doesn't do anything, cuz the units are no more owned by player x but by player y.
What am i doing wrong?
Did i forget something?
This time i seek help concerning a system to sell all units of a player after he left.
It should be like:
Event: Player x leaves
Conditions:
Actions:
-Pick every unit in Playable Map area owned by Player x and do (actions):
Loop - actions:
--Set all_towers = Point value of picked unit
--Add all_towers to Player x's gold
--Kill all units in Playable Map area owned by Player x
(after that, the gold player x has is spread to all left players)
The problem is, after player x leaves, player y gains control over the units he left on the field and as result, the trigger doesn't do anything, cuz the units are no more owned by player x but by player y.
What am i doing wrong?
Did i forget something?