• It's time to dig through Hive's model database and dust off some oldie but goldie models and enter Hive's Texturing Contest #31 : Repurposing! Click here to enter!
  • 🏆 Hive's 5th HD Modeling Contest: Creep Camp is now open! Click here to enter!

Problem with multiboard kill score

Level 5
Joined
Dec 21, 2012
Messages
121
I have problem to make my multiboard count units killed to kill score. I always 0. This is my trigger
  • score kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is an enemy of Player 7 (Green)) Equal to True
      • ((Dying unit) is A Hero) Equal to False
    • Actions
      • Set Kills[(Player number of (Owner of (Killing unit)))] = Kills[((Player number of (Owner of (Killing unit))) + 1)]
      • Multiboard - Set the text for MultiBoard item in column 2, row 2 to (|cff00FF00 + ((String(Kills[(Player number of (Owner of (Killing unit)))])) + |r))
 
Level 5
Joined
Dec 21, 2012
Messages
121
Was good try. Still don' want to work :(
  • score kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is an enemy of Player 7 (Green)) Equal to True
      • ((Dying unit) is A Hero) Equal to False
    • Actions
      • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for MultiBoard item in column 2, row 2 to (|cff00FF00 + ((String(Kills[(Player number of (Owner of (Killing unit)))])) + |r))
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,107
What is happening? Is the trigger even firing? Use a debug message to find where it goes wrong (just print some string or value as a message at certain points).

If the trigger is not firing when it should then you have likely hit the op-limit in the initialization thread. This is commonly caused by initializing GUI variables (globals) too large since it has to initialize each index to the default.
 
Top