• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Is this trigger not good enough?

Level 17
Joined
Jul 19, 2007
Messages
971
Here is a trigger to make players gain gold when destroying an enemy's tower but players complains that it sometimes doesn't give any gold at all. It doesn't happening often but sometimes it does... What could be the problem?
  • Good Kill Tower Evil
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Orc Tower
          • (Unit-type of (Dying unit)) Equal to Ballista Tower
    • Actions
      • Set VariableSet BonusGoldTower = 300
      • Game - Display to PlayersGood the text: (The |cff0080FF + (Good|r + (|rforces destroyed a tower, awarding you + (|cffffcc00 + ((String((BonusGoldTower / (Number of players in PlayersGood)))) + |r gold!)))))
      • Player Group - Pick every player in PlayersGood and do (Actions)
        • Loop - Actions
          • Player - Add (BonusGoldTower / (Number of players in PlayersGood)) to (Picked player).Current gold
 
Back
Top