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

Removing gold income for all players - does this leak?

Status
Not open for further replies.
Level 5
Joined
Oct 5, 2012
Messages
73
Hey, this very simple trigger seemed to cause lags. I guess it is activated very often. Do you have a better idea how to implement it? The idea is simply to make all players have gold amount permanently set to 0, including gold rewarded by neutral creeps.

Do you think it causes leaks? Is there better way to implement this?
  • No Gold Mod
    • Events
      • Player - Player 2 (Blue)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 3 (Teal)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 4 (Purple)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 5 (Yellow)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 6 (Orange)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 8 (Pink)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 9 (Gray)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 10 (Light Blue)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 11 (Dark Green)'s Current gold becomes Greater than or equal to 1.00
      • Player - Player 12 (Brown)'s Current gold becomes Greater than or equal to 1.00
    • Conditions
    • Actions
      • Player - Set (Triggering player).Current gold to 0
 
Level 30
Joined
Aug 29, 2012
Messages
1,387
For neutral creeps, you can use this action, that will certainly be more lightweight. Just put it somewhere at map initialization and never worry about it anymore

  • Player - Turn Gives bounty Off for Neutral Hostile
For the rest, it all depends what ways players can earn gold in your map. Are there workers? Can you sell items?
 
Status
Not open for further replies.
Top