i am trying to port the gameplay from gangland to warcraft 3. i need certain buildings to change owner when i activate an ability in the building that is based on charge(gold and lumber). can anybody help me with that.
If you use the "unit is issued an order" event, you should be able to get the player who issued the order by using "triggering player". So, you just need to detect when the ability's order is issued to the unit.
i just tested multiple versions of that solution and nothing happens except that the game lags. triggering player is likely the problem though because i havent ever gotten that working so it is likely something that blizzard forgot to finish. please try to come up with something else.