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

Custom Gold Collector

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
How to trigger a Gold Collector Tent like Troll and Elves?
I did not think Trolls or Elves used "Gold Collector Tents". I would imagine Trolls shared the same gather system as Orcs and Elves appeared to share the same as Humans in the campaign.

If you are referring to a specific map please link it. We are not physic and cannot possibly know about 1 small part of 1 random map out of the tens of thousands of maps that have been made.

To emphasise the above solution. Basically you are periodically adding an income variable to each player. This variable is incremented appropriately when buildings are built or upgraded and decremented appropriately on death or when upgrade starts. You need a system to handle upgrade cancelation as well but that can be tagged along with construction. Data feeding it from parallel arrays is by far the most scalable and maintainable approach.
 
Status
Not open for further replies.
Top