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

i need to know how income system works

Status
Not open for further replies.
Level 3
Joined
May 20, 2006
Messages
29
Have you tried setting the price of the unit to a negative number?

If that doesn't work, make an ability based off of the wisp harvest gold\lumber ability, and use it to generate resources over time.

Hope this helps.
 
Level 6
Joined
Aug 22, 2006
Messages
253
Its simple:

Let [] mark a variable.

Event:
Periodic Event

Actions:
Set [IntegerVariable] = Count number of units of type [UnitType] in (Entire Map) owned by Player
Set [IntegerVariable] = [IntegerVariable] x [IntegerVariable2]
Add [IntegerVariable] to players gold.
Set [IntegerVariable] = 0.

UnitType is the type of unit you wish to generate money. IntegerVariable is the count for the unit type. IntegerVariable2 is the amount of money you wish each unit to generate.
Hope that helps.
 
Status
Not open for further replies.
Top