• 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

Status
Not open for further replies.
Level 9
Joined
Jun 18, 2004
Messages
565
To make it add income when it's built...

  • Add Income
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Farm
    • Actions
      • Set Income = (Income + 1)
To make it lower income when it's destroyed, simply swap the Event to when a unit dies, and make the Income Variable "-1" instead of "+1"
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
That trigger is going to do nothing because the "Income" Variable doesn't give any money.

If you want every farm to give you X gold every Y seconds, do:
  • Income
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Add ((Number of units in (Units owned by (Player((Integer A))) of type Farm)) x 50) to (Player((Integer A))) Current gold
this will add 50 gold for each farm you have every 15 seconds.

If you want a farm to give X gold when constructed, do:
  • Income 2
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Farm
    • Actions
      • Player - Add 50 to (Owner of (Constructed structure)) Current gold
 
Level 10
Joined
Mar 30, 2007
Messages
447
iron warriors trigger could work, it would have to be an integer variable, and you would have to make another event stating:

Event -Every (What ever time period you want the farm to give money)

Actions- Pick every player in unit group all players and do actions else do nothing

Actions- ((Add 50 x Income) Gold to (picked player))
 
Level 3
Joined
Jul 27, 2007
Messages
56
Thanks guys im sure that'll work

And off this topic I gotta say your avatar rules arab!!


Well It almost worked I had too make that into two triggers instead of one but I did pretty much what you guys said
 
Last edited:
Status
Not open for further replies.
Top