Multiboard trouble

Vamtiin

New Member
Reaction score
1
Hi there, been a couple of years since I made a map, and now I'm into it again.
Trying to do a multiboard to a TD, but I'm stuck. What do I do now?
Not posting all of it, seems unnecessary :p

Trigger:
  • Multiboard - Create a multiboard with 3 columns and 8 rows, titled blablah:
    • [some display settings]
    • [Some cell widhts]
    • Multiboard - set the text for (last created multiboard) item in column 1, row 1, to Lower team
    • Multiboard - set the text for (last created multiboard) item in column 1, row 5, to Upper team
    • Multiboard - set the text for (last created multiboard) item in column 2, row 1, to Income:
    • Multiboard - set the text for (last created multiboard) item in column 3, row 1, to Kills
    • [Some header colours]
    • For each (integer A) from 1 to 3, do (actions)
    • Loop - Actions
    • Multiboard - Set text for (last created multiboard) item column 1, row (1+(integerA)) to (name of (player((integerA))))
    • For each (integer A) from 5 to 8, do (actions)
    • Loop - Actions
    • Set tempint = ((integer A) +1)
    • Multiboard - Set text for (last created multiboard) item column 1, row tempint to (Name of (player((Integer A))))


Now I need to put some income- and kill-stats into it, but I can't figure out how/where to find the right actions.
So if someone would be kind enough to tell me I'd be overjoyed ^^

I already have variables for Kills and Income, as well as triggers.
(
Trigger:
  • Events
    • Unit - A unit dies
    • Conditions
    • ((Triggering unit) is a structure) equal to false
    • (Owner of (killing unit)) equal to Player 1 (red)
    • Actions
    • Set KillsRed = (KillsRed +1)

and so on..)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
how about picking all players playing in your map and doing something like this:
Trigger:
  • Multiboard - Set text for MyMultiboardVariable item column 2, row ((Playernumber of (Picked Player))+1) to Kills[(Playernumber of (Picked Player))]

i am using this "MyMultiboardVariable" variable to refer to the multiboard created in that other trigger (in case you have more then 1)
and "Kills[]" is an integer variable with array, "Kills[1]" would therefor be the kills of player 1 red.
 

Vamtiin

New Member
Reaction score
1
Uhm... Didn't catch it there =P

Anyhow, I remade the kill variables a bit, to see if I could put some variables into the multiboard, but no..

The kill counting now is like this:
Trigger:
  • KillCount
    • Events
    • Unit - A Unit Dies
    • Conditions
    • ((Triggering unit) is a structure) equal to false
    • Actions
    • Set Kill_Count[((Player number of (owner of killing unit))))] = (Kill_Count[P((Player number of (owner of killing unit))))] +1)


But when I'm trying to edit the text in the multiboard, column 2 row 2, I can't put some variables into it?
Just strings, and other irrelevant stuff like player number.

What I want is to put Kill_Count[1] into column 2, row 2. But it seems nearly impossible :(

Or is it just some small thing that I've missed?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
"Convert Integer to String" then you will see something like this:
"String( (Player number of (Triggering Player)) )"
click the blue highlighted part and another window will pop up which looks somewhat like this:
Code:
Integer
O Variable: Kills                                [V] [Edit Variables]
[B]O[/B] Function: Player - Player number                                [V]
            Player number of [COLOR="Blue"](Triggering Player)[/COLOR]

            [COLOR="Gray"]Player numbers range from 1 to 16.[/COLOR]

O Value:    0           [^v]

check the text which says "Variable" and select the variable where you count your kills with.
(lol, i had alot of fun with this post)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top