1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Multiboard... some help? =)

Discussion in 'Triggers & Scripts' started by Lonely Wolf., Aug 16, 2007.

  1. Lonely Wolf.

    Lonely Wolf.

    Joined:
    Jul 3, 2004
    Messages:
    404
    Resources:
    0
    Resources:
    0
    i've been lurking the forums to try and find something that can help me, but im not that fast when looking at something thats not anything near what im looking for.
    Code (Text):
    Players   -    Unit Kills   -    Hero Kills   -    Arena Victories
    -=Team 1=-      -                   -                      -
    player 1          
    player 2
    player 3
    -=Team 2=-      -                   -                      -
    player 4
    player 5
    player 6
    -=Team 3=-      -                   -                      -
    player 7
    player 8
    player 9
    -=Team 4=-      -                   -                      -
    player 10
    player 11
    player 12
    Edit: Well, the only problem is the with, any way it can be done easily?

    Edit 2: Well... just as always, i managed to create one, and do the update trigger aswell. -_- yhanks anyway though....
     
    Last edited: Aug 18, 2007
  2. Lingonberryjam

    Lingonberryjam

    Joined:
    Feb 25, 2005
    Messages:
    230
    Resources:
    0
    Resources:
    0
    Yes multiboards are quite smple to create.

    I answered a question about multiboards here just today, so copy paste ftw! :)

    ---

    Word Editor --> Trigger Editor --> Multiboard *Here are the actions*

    You should remember that multiboards can't be created at map initialization, have it created after a few seconds or so.

    To show you how a simple multiboard is created, i'll paste a trigger here soon:

    • Create Multiboard -Example-
      • Events
        • Time - Elapsed game time is 5.00 seconds
      • Conditions
      • Actions
        • Multiboard - Create a multiboard with 3 columns and 14 rows, titled The Multiboard
        • Set TheMultiboard = (Last created multiboard)
        • Multiboard - Set the display style for TheMultiboard item in column 0, row 0 to Show text and Hide icons
        • Multiboard - Set the width for TheMultiboard item in column 0, row 0 to 4.00% of the total screen width
        • Multiboard - Set the width for TheMultiboard item in column 1, row 0 to 10.00% of the total screen width
        • Multiboard - Set the text for TheMultiboard item in column 1, row 1 to Player
        • Multiboard - Set the text for TheMultiboard item in column 2, row 0 to 0
        • Multiboard - Set the text for TheMultiboard item in column 2, row 1 to Kills
        • Multiboard - Set the text for TheMultiboard item in column 3, row 0 to 0
        • Multiboard - Set the text for TheMultiboard item in column 3, row 1 to Deaths
        • Multiboard - Set the text for TheMultiboard item in column 0, row 2 to <Empty String>
        • For each (Integer A) from 1 to 12, do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Player((Integer A))) slot status) Equal to Is playing
              • Then - Actions
                • Multiboard - Set the text for TheMultiboard item in column 1, row (2 + (Integer A)) to (Name of (Player((Integer A))))
              • Else - Actions
                • Multiboard - Set the text for TheMultiboard item in column 1, row (2 + (Integer A)) to -Not Playing-
        • Wait 1.00 seconds
        • Multiboard - Show TheMultiboard
        • Multiboard - Minimize TheMultiboard


    Note: Using 0 as a row/column value affects all rows/columns

    Hope it helped, you can take it from here i guess.

    ---

    That multiboard will look like this:
    View attachment The Multiboard.bmp

    You have to adapt the actions to make it look like your leaderboard, specially the fact that you have to put in the teams in it. Maybe you can simply have 4 loops, one for each team, to add in the playernames. A tip is to use loops as much as you can, to save space (in the trigger) and time.

    Don't forget that you have to 'take care' of the multiboard, that is refreshing it. Every time a player gets a kill or something like that, you have to use the 'Multiboard - Set the text...' action and change the text to the new value.