• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

i need to know how income system works

Status
Not open for further replies.

DarK_PheNix

D

DarK_PheNix

can u tell how to make it so when u summon a monster from like a shrine u get a specific amount of income each so often?
 
Inferno i tried that but i cant find the triggers that control it
 
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.
 
grath thats a good idea ill see if that will work
ty if it does :lol:
 
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.
Back
Top