HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard Update Question

04-12-2004, 03:25 PM#1
Thrall_89
Ok, I set up a multiboard and all that fun stuff. But I can't seem to remember how to do the updating trigger (yes i did search, but what I found didnt work either. . .) Ill post the trigger(s), I'll highlight the parts that would pry affect the trigger. Please let me know if you see a flaw, or if you could post a way of doing it.

Code:
Multiboard
    Events
        Time - Elapsed game time is 2.00 seconds
    Conditions
    Actions
        Multiboard - Create a multiboard with 2 columns and 11 rows, titled |cff906050Kill Coun...
        Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Hide icons
        Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Show icons
        Multiboard - Set the display style for (Last created multiboard) item in column 1, row 7 to Show text and Show icons
        Multiboard - Set the icon for (Last created multiboard) item in column 1, row 0 to ReplaceableTextures\CommandButtons\BTNKnight.blp
        Multiboard - Set the icon for (Last created multiboard) item in column 1, row 7 to ReplaceableTextures\WorldEditUI\Editor-MultipleUnits.blp
        Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 12.50% of the total screen width
        Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 4.50% of the total screen width
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |cff206020Player Na...
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |cff206020Kills|r
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Team1 Kills:
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to (Name of Player 1 (Red))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to (Name of Player 3 (Teal))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (Name of Player 5 (Yellow))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (Name of Player 7 (Green))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Team2 Kills:
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Name of Player 2 (Blue))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (Name of Player 4 (Purple))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to (Name of Player 6 (Orange))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 11 to (Name of Player 8 (Pink))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(Kills[(Team number of Player 1 (Red))]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(Kills[1]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String(Kills[3]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (String(Kills[5]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (String(Kills[7]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (String(Kills[(Team number of Player 2 (Blue))]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 8 to (String(Kills[2]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (String(Kills[4]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (String(Kills[6]))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 11 to (String(Kills[8]))
        Multiboard - Show (Last created multiboard)


Code:
Start Update Multiboard
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) is an enemy of (Owner of (Killing unit))) Equal to True
    Actions
        [color=RoyalBlue]Set Kills[(Player number of (Owner of (Killing unit)))] = Kills[(Kills[(Player number of (Owner of (Killing unit)))] + 1)][/color]
        Trigger - Run Update Multiboard <gen> (ignoring conditions)

Code:
Update Multiboard
    Events
    Conditions
    Actions
        [color=RoyalBlue]For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Kills[(Integer A)]))[/color]
04-12-2004, 03:57 PM#2
MysticGeneral
In a multiboard, I don't believe it really needs an update trigger. Well for one like yours anyway.

Code:
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(Kills[1]))

Why is there a string conversion? If I'm not mistaken, Kills[x] is an integer array. Since it's an integer, it doesn't need to be converted. Try taking out the conversion.
04-12-2004, 06:30 PM#3
Thrall_89
Quote:
Originally Posted by MysticGeneral
Why is there a string conversion? If I'm not mistaken, Kills[x] is an integer array. Since it's an integer, it doesn't need to be converted. Try taking out the conversion.

Hm, well I tried what you gave me, I tinked around with the Conversion stuff too... but to no avail, the best ive gotten it to do is go to 1, then stop working. . . any thoughts? I'll keep trying, but I would greatly appreciate any assistance any of you can give me.