• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Custom Gold Collector

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
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