• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Shared Unit Control

Status
Not open for further replies.
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.
Back
Top