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

Income system

Status
Not open for further replies.
Level 1
Joined
Dec 13, 2008
Messages
2
I'm making a war map, and I just need a trigger that counts the numbers of cities, towns and villages, and then gives a set income for each. I just need someone to show me how to count each structure and then give out a certain amount of money depending on how many each player has.

*SOLVED*
 
Last edited:
Level 4
Joined
Oct 15, 2006
Messages
58
Not sure exactly what your talking about, but this series of income triggers that should good for you:

Trigger 1

Events: Time - Every 20.00 seconds of game time

Actions: Unit Group - Pick every unit in (Units of type City) and do (Player - Add # to (Owner of (Picked unit)) Current gold)

Trigger 2

Events: Time - Every 20.00 seconds of game time

Actions: Unit Group - Pick every unit in (Units of type Town) and do (Player - Add # to (Owner of (Picked unit)) Current gold)

Trigger 3

Events: Time - Every 20.00 seconds of game time

Actions: Unit Group - Pick every unit in (Units of type Village) and do (Player - Add # to (Owner of (Picked unit)) Current gold)
 
Level 1
Joined
Dec 13, 2008
Messages
2
That first trigger looked good, I was trying to figure out how to only count cities/towns. Thanks much, will edit if it works or not.

Used your idea, had to add some variable stuff but otherwise it really helped. Thanks much :D.
 
Status
Not open for further replies.
Top