• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Shared Unit Control

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
You could add the item cost to every other player with control of the unit (a team, i guess) and avoid adding the gold to the owner of the unit.
 
It can be written in GUI. If a hero buys and item and the hero is owned by player A but the hero is controlled by player B, then reduce the gold of player A buy the cost of the item and give the cost of the item gold back to player B. This might take making a few variables and using hashtables. Why don't you give it a try and post what you come up with? I don't really feel like trying it, but maybe someone nicer than me will do it.
 
Status
Not open for further replies.
Top