1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Problem with multiboard kill score

Discussion in 'World Editor Help Zone' started by Banti, Sep 13, 2014.

  1. Banti

    Banti

    Joined:
    Dec 21, 2012
    Messages:
    120
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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))
     
  2. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    You did the arithmetic action wrong on here.
    • Set Kills[(Player number of (Owner of (Killing unit)))] = Kills[((Player number of (Owner of (Killing unit))) + 1)]


    It should be like this.
    • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
     
  3. Banti

    Banti

    Joined:
    Dec 21, 2012
    Messages:
    120
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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))
     
  4. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,201
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    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.
     
  5. Banti

    Banti

    Joined:
    Dec 21, 2012
    Messages:
    120
    Resources:
    1
    Maps:
    1
    Resources:
    1
    That could be right. Probably I hit op-limit. Thanks for your help
     
    Last edited: Sep 13, 2014