HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard deaths

05-09-2004, 06:45 PM#1
orcmasta
I am made multiboard with all the basic stuff then i came across a dotallstars map and he got it to say how many times the players hero has died. Can someone explain it to me or show me? Thx alot
05-09-2004, 06:52 PM#2
HEZZA
Well its pretty damn simple....

u know how on LEADER boards u got number of heroes and specific hero has killled....well its that but in reverse...

look at a trigger that adds numbers to a board for number of kills and reverse it so its number of times beenkilled
05-09-2004, 07:38 PM#3
Shimrra
I set up two triggers to create a good multiboard that shows the number of times a player's Hero has died and the number of units killed by that player. You need the following variables:

Multiboard - A multiboard variable
HeroDeaths[X] - An integer variable
Kills[X] - An integer variable

The creation trigger is as follows:

Code:
Make the Multiboard
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Multiboard - Create a multiboard with 3 columns and 13 rows, titled Game Stats
        Set Multiboard = (Last created multiboard)
        Multiboard - Set the display style for Multiboard item in column 0, row 0 to Show text and Hide icons
        For each (Integer A) from 1 to 13, do (Actions)
            Loop - Actions
                Multiboard - Set the text for Multiboard item in column 1, row (Integer A) to (Player  + (String((Integer A))))
                Multiboard - Set the width for Multiboard item in column 1, row (Integer A) to 5.00% of the total screen width
                Multiboard - Set the text for Multiboard item in column 2, row (Integer A) to (|c00feba0eHero Deaths: |r + (String(HeroDeaths[(Integer A)])))
                Multiboard - Set the width for Multiboard item in column 2, row (Integer A) to 10.00% of the total screen width
                Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (|c0020c000Player Kills: |r + (String(Kills[(Integer A)])))
                Multiboard - Set the width for Multiboard item in column 3, row (Integer A) to 8.00% of the total screen width
        Multiboard - Show Multiboard

The Multiboard update trigger should be like this:

Code:
Update
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
            Then - Actions
                Set HeroDeaths[(Player number of (Owner of (Dying unit)))] = (HeroDeaths[(Player number of (Owner of (Dying unit)))] + 1)
                Multiboard - Set the text for Multiboard item in column 2, row (Player number of (Owner of (Dying unit))) to (|c00feba0eHero Deaths: |r + (String(HeroDeaths[(Player number of (Owner of (Dying unit)))])))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to False
            Then - 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 3, row (Player number of (Owner of (Killing unit))) to (|c0020c000Player Kills: |r + (String(Kills[(Player number of (Owner of (Killing unit)))])))
            Else - Actions