• 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.

[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