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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. 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.

Multiboard Template - Here you go!

Discussion in 'StarCraft II Modding' started by Ice Bane, May 10, 2010.

  1. Ice Bane

    Ice Bane

    Joined:
    Feb 6, 2007
    Messages:
    72
    Resources:
    0
    Resources:
    0
    Okey so I figured I needed a Multiboard and found out that you need to use dialogs, this is a very dynamic system but a bit confusing in start.

    So I wanted to create a multiboard with columns and rows. One instance of a multiboard for each player showing a text in the left column and integers in the right one.

    This multiboard template has 9(Rows)x2(Columns) with a dynamic system which makes it easy to change distances between Dialog Items (Texts, Integers etc) very easy.

    I made this template for you so that you hopefully will learn from it. This is not a tutorial though.

    However, I hope you find it useful!

    Yours Faithfully, Ice_bane @ EU


    P.S I know this Dialog/Multiboard isn't fully optimised but hopefully you will learn from it anway.



    GLOBAL VARIABLES

    Code (Text):
            Variables
                Player Group
                    <Your Player Group> = (Empty player group) <Player Group>
                Dialog
                    Dialog - Initial Dialog = No Dialog <Dialog[14]>
                    Dialog - Dialog Items = No Dialog Item <Dialog Item[14][14]>
                    Dialog - <Right Column Integers> = 0 <Integer[14][8]>
                Technologies
                    <Left Column Text - Row 1> = 0 <Integer[14]>
                    <Left Column Text - Row 2> = 0 <Integer[14]>
                    <Left Column Text - Row 3> = 0 <Integer[14]>
                    <Left Column Text - Row 4> = 0 <Integer[14]>
                    <Left Column Text - Row 5> = 0 <Integer[14]>
                    <Left Column Text - Row 6> = 0 <Integer[14]>
                    <Left Column Text - Row 7> = 0 <Integer[14]>
                    <Left Column Text - Row 8> = 0 <Integer[14]>
     
    DIALOG CREATION TRIGGER
    Code (Text):
    Dialog - Dialog Creation
        Events
            Timer - Elapsed time is 6.0 Game Time seconds
        Local Variables
            Loop Integer A = 0 <Integer>
            Loop Integer B = 0 <Integer>
            Dialog Text Set 01 = No Text <Text[10]>
            ------- -
            Dialog Colums (X) Cordinate = 0 <Integer[8]>
            Dialog Rows (Y) Cordinate = 0 <Integer[8]>
            ------- -
            Dialog Number of Active  Rows = 8 <Integer>
            ------- (Active Rows = the rows I want to update later on, the rows used by Dialog Text Set 01[9] & [10] is static and won't be changed.)
            Dialog Number of Columns = 2 <Integer>
        Conditions
        Actions
            ------- Set Variables
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                Then
                    Variable - Set Dialog Text Set 01[1] = "<Left Column Text - Row 2>"
                    Variable - Set Dialog Text Set 01[2] = "<Left Column Text - Row 3>"
                    Variable - Set Dialog Text Set 01[3] = "<Left Column Text - Row 4>"
                    Variable - Set Dialog Text Set 01[4] = "<Left Column Text - Row 5>"
                    Variable - Set Dialog Text Set 01[5] = "<Left Column Text - Row 6>"
                    Variable - Set Dialog Text Set 01[6] = "<Left Column Text - Row 7>"
                    Variable - Set Dialog Text Set 01[7] = "<Left Column Text - Row 8>"
                    Variable - Set Dialog Text Set 01[8] = "<Left Column Text - Row 9>"
                    Variable - Set Dialog Text Set 01[9] = "<Left Column Topic - Row 1>"
                    Variable - Set Dialog Text Set 01[10] = "<Left Column Topic - Row 2>"
                    ------- -
                    General - For each integer Loop Integer A from 1 to (Number of players in <Your Player Group>) with increment 1, do (Actions)
                        Actions
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][1] = <Left Column Text - Row 1>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][2] = <Left Column Text - Row 2>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][3] = <Left Column Text - Row 3>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][4] = <Left Column Text - Row 4>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][5] = <Left Column Text - Row 5>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][6] = <Left Column Text - Row 6>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][7] = <Left Column Text - Row 7>[Loop Integer A]
                            Variable - Set Dialog - <Right Column Integers>[Loop Integer A][8] = <Left Column Text - Row 8>[Loop Integer A]
                    ------- Set Cordinate for Columns (X)
                    ------- -
                    Variable - Set Dialog Colums (X) Cordinate[1] = 50
                    Variable - Set Dialog Colums (X) Cordinate[2] = 225
                    ------- -
                    ------- Set Cordinate for Rows (Y)
                    General - For each integer Loop Integer A from 1 to Dialog Number of Active  Rows with increment 1, do (Actions)
                        Actions
                            Variable - Set Dialog Rows (Y) Cordinate[Loop Integer A] = (50 + (25 * Loop Integer A))
                Else
     
    DIALOG REFRESH TRIGGER
    Code (Text):
    Dialog - Dialog Refresh
        Events
            Timer - Every 0.5 seconds of Game Time
        Local Variables
            Loop Integer A = 0 <Integer>
            Loop Integer B = 0 <Integer>
            Dialog Text Set 01 = No Text <Text[14]>
            ------- -
            Dialog Colums (X) Cordinate = 0 <Integer[8]>
            Dialog Rows (Y) Cordinate = 0 <Integer[8]>
            ------- Comment
            Dialog Number of Rows = 8 <Integer>
            Dialog Number of Columns = 2 <Integer>
        Conditions
        Actions
            General - For each integer Loop Integer A from 1 to (Number of players in <Your Player Group>) with increment 1, do (Actions)
                Actions
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][1] = <Left Column Text - Row 1>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][2] = <Left Column Text - Row 2>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][3] = <Left Column Text - Row 3>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][4] = <Left Column Text - Row 4>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][5] = <Left Column Text - Row 5>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][6] = <Left Column Text - Row 6>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][7] = <Left Column Text - Row 7>[Loop Integer A]
                    Variable - Set Dialog - <Right Column Integers>[Loop Integer A][8] = <Left Column Text - Row 8>[Loop Integer A]
            ------- SET TEXT LABEL
            Player Group - For each player Loop Integer A in <Your Player Group> do (Actions)
                Actions
                    ------- Set Text = Integers
                    General - For each integer Loop Integer B from 1 to Dialog Number of Rows with increment 1, do (Actions)
                        Actions
                            Dialog - Set Dialog - Dialog Items[Loop Integer A][Loop Integer B] text to (Text(Dialog - <Right Column Integers>[Loop Integer A][Loop Integer B])) for (Player group(Loop Integer A))
     
     
  2. Clamp

    Clamp

    Joined:
    Feb 28, 2010
    Messages:
    20
    Resources:
    0
    Resources:
    0
    It is so elementary that there is nothing to tell. Article "how to tell "a".
     
  3. Ice Bane

    Ice Bane

    Joined:
    Feb 6, 2007
    Messages:
    72
    Resources:
    0
    Resources:
    0
    Huh? I didn't understand that one.. ;p