• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Removing gold income for all players - does this leak?

Level 4
Joined
Oct 5, 2012
Messages
52
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 20
Joined
Aug 29, 2012
Messages
829
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?
 
Top