• 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] Income help

Status
Not open for further replies.
Level 4
Joined
Jan 16, 2009
Messages
16
Hello every one :grin:
There are probebly alot of guids for this but i just dident have time to search for it, any way.
i need some one who can tell me how to make a send income like in Hero Line War, live wars and so one...
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You have an integer variable. To that variable you add the income that each created unit adds as you create the unit. You then have a timer which repeats and when expires adds that integer to a corrosponding player's gold.
You then repeat the above for all the players.

For efficency you can use an integer array with an index of the player number to store your income in. This will be easier to program and end up a lot more efficent in the long term.
 
Status
Not open for further replies.
Top