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

Upgrade for Gold - Income/Upkeep?

Status
Not open for further replies.
Level 6
Joined
Oct 25, 2010
Messages
203
I came across an upgrade already in the world editor called Improved Gold Harvesting and decided to try it out, but noticed it doesn't actually do anything.

So I created the following trigger:

Event:
- Unit - A unit finishes research
Conditions:
- (Research tech-type) Equal to "Improved Gold Harvesting"
Actions:
- Player - Set (Triggering Player) "Gold upkeep rate" to (((Triggering Player) Gold upkeep rate) - 15)

And this worked, sort of. It did add an additional +2 to each gold collected, but once I create or lose a unit, it stops working (like the gold income goes back to normal of 10 instead of 12)

I guess theres more I'm missing??
 
Last edited:
Level 11
Joined
Jun 2, 2004
Messages
849
Keep your intended upkeep for the player in a variable and set it every 0.1 seconds or so. So long as you don't have an enormous number of quick periodic triggers like this it won't lag either.
 
Status
Not open for further replies.
Top