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

Searching: Trigger that gives players gold each second.

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Create a Timer and start it on Map Initialization as a Reeating Timer that will expire every 1 second

On event: ThatTimer expires
Pick every player in (All Players) and do:
- Add 1 gold to (Picked Player) current gold.
 
Level 11
Joined
Jun 20, 2009
Messages
880
  • GPM
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player - Add 1 to Player 1 (Red) Current gold

You can use this trigger to give gold to all 12 players:

  • GPM
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Add 1 to (Player((Integer A))) Current gold
Download this test map if needed.
 

Attachments

  • Gold Per Second.w3x
    16 KB · Views: 38
Status
Not open for further replies.
Top