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

How to make an income system

Status
Not open for further replies.
Level 2
Joined
Jan 10, 2012
Messages
15
Hello. Sniper again.
I got bored so i decided to make a evolution/Civilization type map. its terrianed but this is my idea. I'm using Newgenjasspack5.
So my income system idea, would be for lumber
Capturing Circle's of power around my forest area's
And building Farm's in the farm lands aka Crops Terrian. from village

And im still thinking of an idea for gold, but really right now is what do i need to do to make my income system work?

I've been experimenting with Gui-trigger's to make it work, but i really haven't found a proper way to make the income go to the player that has built a farm in the field.

If you could give me suggestion's advice or a little tutorial on how to make a working system let me know.
*Note* i would download a income system from spell's but i don't know how to put them into my map and make them functional again. but I'd really like to make one my self. +Rep for the people that help me out. Thanks ~Sniper~
 
Level 11
Joined
May 26, 2009
Messages
760
Here is the most simple way to do it. Copy the line for each player and replace # with the amount of resources the Farms and Capture Points yield.

  • Income
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Player - Add (((Number of living Capture Point units owned by Player 1 (Red)) x #) + ((Number of living Farm units owned by Player 1 (Red)) x #)) to Player 1 (Red) Current gold
There are of course more sophisticated ways of doing it. If you want to explore more advanced options I suggest you look into the tutorial section here on THW. Look for Countdown Timers and Variables; they ought to give you a solid foundation.
 
Level 2
Joined
Jan 10, 2012
Messages
15
It don't work. what I'm trying to make is. depending on the amount of farm's player has build in the corps terrain give's the building player +1 to max food per min.

player has 2 farms it'll be +2 per min. got any idea's?
 
Status
Not open for further replies.
Top