HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard Wont update

10-25-2004, 02:33 PM#1
HEZZA
Bah i posted but then i clicked preview then done back and it was blank!#

Anyway i need help on my multi board it wont update.

I set it up like so:

Code:
Multiboard - Create a multiboard with 5 columns and 6 rows, titled |cffffccccEvoloutio...
=============================================
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Player 1 (Red) slot status) Equal to Is playing
    Then - Actions
        Multiboard - Set the icon for Multiboard[0] item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
        Multiboard - Set the icon for Multiboard[0] item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
        Multiboard - Set the icon for Multiboard[0] item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
        Multiboard - Set the icon for Multiboard[0] item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
        Multiboard - Set the icon for Multiboard[0] item in column 5, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
    Else - Actions
        Do nothing

this is what i set up that detects when you kill something:
Code:
Detect Kill
    Events
        Unit - A unit Dies
    Conditions
        (Owner of (Dying unit)) Equal to Neutral Hostile
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 1 (Red)
            Then - Actions
                Set Playerintergers[0] = (Playerintergers[0] + 1)
            Else - Actions
                Do nothing

now this is the updating part, this should change the icon of each item on the row for the player.

Code:
Player Update Multi
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        -------- Player 1 --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 0
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
                Multiboard - Set the icon for Multiboard[0] item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
                Multiboard - Set the icon for Multiboard[0] item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
                Multiboard - Set the icon for Multiboard[0] item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
                Multiboard - Set the icon for Multiboard[0] item in column 5, row 1 to ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 1
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 2
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 3
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 4
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Playerintergers[0] Equal to 5
            Then - Actions
                Multiboard - Set the icon for Multiboard[0] item in column 5, row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
                Quest - Display to Player Group - Player 1 (Red) the New Item Received message: You have Recieved 1...
                Player - Set Player 1 (Red) Current lumber to ((Player 1 (Red) Current lumber) + 1)
                Wait 2.00 seconds
                Set Playerintergers[0] = 0
            Else - Actions
                Do nothing

Sorry it looks complicated then it is. If u find the fault tell me or if u need more info tell me.
-hezz
10-26-2004, 02:54 PM#2
HEZZA
AHA i fixed it...stupid condition

owner of killing unit....lol i dont belive it
10-26-2004, 03:50 PM#3
Anitarf
You know your triggers are tooooo long? Instead of all those if-then-elses, you could just do this:
Code:
                Multiboard - Set the icon for Multiboard[0] item in column PlayerIntegers[0], row 1 to ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
And instead of copy-pasting for each player, you could use loops?
10-26-2004, 05:04 PM#4
HEZZA
Yeah i could, but there are other conditions, i just didnt put them up so it woundlt confuse the question at hand.

Plus it saves me from making 6 uncessary triggers,when i only need the one.