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.

Multiboard Question - will appreciate fast reply

Discussion in 'Map Development' started by Dragon_Lord, Apr 23, 2005.

  1. Dragon_Lord

    Dragon_Lord

    Joined:
    Jul 20, 2004
    Messages:
    156
    Resources:
    0
    Resources:
    0
    Just a simple question concerning multiboards: I have a multiboard in my game, but I can't find the trigger to add values, i.e. in column one, row one, the title is Red's Kills. I want there to be a 0 there in the beginning of the game, and once red kills a unit, it goes to one, then he kills another, then it goes to two, etc... my problem is simply that I can't find where I can set the value and add or subtract points. Thanks in advance, Dragon_Lord.
     
  2. PalidinMaster3

    PalidinMaster3

    Joined:
    Jul 31, 2004
    Messages:
    108
    Resources:
    0
    Resources:
    0
    OK! Here is is,

    Multiboard
    Events
    Time - Elapsed game time is 0.20 seconds
    Conditions
    Actions
    -------- Create --------
    Multiboard - Create a multiboard with 2 columns and 2 rows, titled Helper
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 20.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 20.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 10.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 10.00% of the total screen width
    -------- Add Text --------
    Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String(Killz))
    -------- Icons --------
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNAbomination.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroAlchemist.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNAbsorbMagic.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNTheBlackArrow.blp
    -------- Color Text --------
    Multiboard - Set the color for (Last created multiboard) item in column 1, row 1 to (0.00%, 80.00%, 0.00%) with 10.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 1, row 2 to (80.00%, 10.00%, 50.00%) with 10.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 2, row

    1 to (0.00%, 0.00%, 100.00%) with 50.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 2, row 2 to (0.00%, 100.00%, 100.00%) with 0.00% transparency
     
  3. PalidinMaster3

    PalidinMaster3

    Joined:
    Jul 31, 2004
    Messages:
    108
    Resources:
    0
    Resources:
    0
    OK! Here is is,

    Multiboard
    Events
    Time - Elapsed game time is 0.20 seconds
    Conditions
    Actions
    -------- Create --------
    Multiboard - Create a multiboard with 2 columns and 2 rows, titled Helper
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 20.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 20.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 10.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 10.00% of the total screen width
    -------- Add Text --------
    Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String(Killz))
    -------- Icons --------
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNAbomination.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroAlchemist.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNAbsorbMagic.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNTheBlackArrow.blp
    -------- Color Text --------
    Multiboard - Set the color for (Last created multiboard) item in column 1, row 1 to (0.00%, 80.00%, 0.00%) with 10.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 1, row 2 to (80.00%, 10.00%, 50.00%) with 10.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 2, row

    1 to (0.00%, 0.00%, 100.00%) with 50.00% transparency
    Multiboard - Set the color for (Last created multiboard) item in column 2, row 2 to (0.00%, 100.00%, 100.00%) with 0.00% transparency

    O yea, I suggest using an interger for the killz
     
  4. Dragon_Lord

    Dragon_Lord

    Joined:
    Jul 20, 2004
    Messages:
    156
    Resources:
    0
    Resources:
    0

    Ok, I understand that I should use an integer, but HOW. You didn't give any examples. You gave examples of the things I DIDN'T ask for. Could you please give me an example of a base integer, and then an example of adding/subtracting other integers from it? Thanks, Dragon_Lord[/quote]
     
  5. Raptor--

    Raptor--

    Joined:
    Jul 30, 2004
    Messages:
    452
    Resources:
    0
    Resources:
    0
    [/quote]

    this is pretty basic stuff, but

    define nKills as an integer variable

    KILLS ADD
    event: a unit dies
    condition: killing unit owned by player 1
    actions:
    set nKills = nKills + 1
    run trigger (update multiboard)

    UPDATE MULTIBOARD
    event: none
    condition: none
    actions:
    Multiboard - Set the text for (multiboard variable) item in column (whatever), row (whatever2) to (String(nKills))
    //Thus changing the text in that spot to the number nKills

    of course, this is the most inefficient way possible, i just used it as an example to show you what you should be doing
     
  6. Dragon_Lord

    Dragon_Lord

    Joined:
    Jul 20, 2004
    Messages:
    156
    Resources:
    0
    Resources:
    0
    Quite basic indeed...
     
  7. Raptor--

    Raptor--

    Joined:
    Jul 30, 2004
    Messages:
    452
    Resources:
    0
    Resources:
    0
    well i answered your 2 questions,

    Multiboard - Set the text for (multiboard variable) item in column (whatever), row (whatever2) to (String(integer variable))
    is for setting values in a multiboard

    Set (variable)
    is for adding or subtracting points (to an integer variable)
     
  8. Dragon_Lord

    Dragon_Lord

    Joined:
    Jul 20, 2004
    Messages:
    156
    Resources:
    0
    Resources:
    0
    I KNOW... I got it the first time. I said "simple indeed", as I was agreeing with you.
     
  9. Raptor--

    Raptor--

    Joined:
    Jul 30, 2004
    Messages:
    452
    Resources:
    0
    Resources:
    0
    just making sure