• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Income issue (giving income based on buildings)

Status
Not open for further replies.
Level 2
Joined
Dec 31, 2008
Messages
7
Okay, i cant figure out how to supply income depending on the number of certain buldings a player has. Could somone tell me how?
 
Level 24
Joined
Oct 12, 2008
Messages
1,783
Basically set the players income as a variable.

You then set the variable to an amount based on the number of buildings the players has.
  • Income
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in Team1 and do (Actions)
        • Loop - Actions
          • Player - Add (5 x (Number of units in StructureGroup1)) to (Picked player) Current gold
      • Player Group - Pick every player in Team2 and do (Actions)
        • Loop - Actions
          • Player - Add (5 x (Number of units in StructureGroup2)) to (Picked player) Current gold
StructureGroup is a unit group that holds all strucutres.
 
Status
Not open for further replies.
Top