• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Multiboard player color

Status
Not open for further replies.
Level 2
Joined
Nov 3, 2010
Messages
7
Hey guys! Me again. So I tried to create a multiboaard, that keeps a player color. for example:
1(red) is playing
2(blue) is playing
3(dunno this color =) ) isn't playing
4(purple) is playing,
5(yellow) isn't playing
6(orange) is playing
so here's what i got. sure thing nothing's working properly =)
 

Attachments

  • multi.JPG
    multi.JPG
    26.4 KB · Views: 149
Level 2
Joined
Nov 3, 2010
Messages
7
MultiboardInit
Events
Conditions
Actions
Set cc_players[0] = |cffffcc00
Set cc_players[1] = |c00ff0303
Set cc_players[2] = |c000042ff
Set cc_players[3] = |c001ce6b9
Set cc_players[4] = |c00540081
Set cc_players[5] = |c00fffc01
Set cc_players[6] = |c00feba0e
Set cc_players[7] = |c0020c000
Set cc_players[8] = |c00e55bb0
Set cc_players[9] = |c00AAAAAA
Set cc_players[10] = |c00A4D3EE
Set cc_endtag = |r
Set MultiboardColumns = 4
Set MultiboardRows = ((TeamsTotal + 1) + PlayersTotal)
Multiboard - Create a multiboard with 1 columns and 1 rows, titled Statistics
Set Multiboard = (Last created multiboard)
Multiboard - Change the number of rows for Multiboard to MultiboardRows
Multiboard - Change the number of columns for Multiboard to MultiboardColumns
For each (Integer A) from 1 to MultiboardRows, do (Actions)
For each (Integer B) from 1 to MultiboardColumns, do (Actions)
Multiboard - Set the display style for (Last created multiboard) item in

column (Integer B), row (Integer A) to show text and hide icons
For each (Integer A) from 1 to MultiboardRows, do (Actions)
Multiboard - Set the width for (Last created multiboard) item in column 1, row

(Integer A) to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row

(Integer A) to 7.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row

(Integer A) to 7.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row

(Integer A) to 7.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to

Player
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to

Deaths
Set MultiboardStartRow = 1
For each (Integer A) from 1 to PlayersTotal, do (Actions)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
then
((Player((Integer A))) slot status) равно Играет
Set MultiboardStartRow = (MultiboardStartRow + 1)
Multiboard - Set the text for Multiboard item in column 2, row

MultiboardStartRow to (cc_players[(Integer A)] + ((Name of (Player((Integer A)))) + cc_endtag))
else


Some lines are missing like then-actions, but the important ones are here
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
Please put all of that inside
  • tags.
  • e.g[trigger]MultiboardInit
  • Events
  • Conditions
  • Actions
  • Set cc_players[0] = |cffffcc00
  • Set cc_players[1] = |c00ff0303
  • Set cc_players[2] = |c000042ff
  • Set cc_players[3] = |c001ce6b9
  • Set cc_players[4] = |c00540081
  • Set cc_players[5] = |c00fffc01
  • Set cc_players[6] = |c00feba0e
  • Set cc_players[7] = |c0020c000
  • Set cc_players[8] = |c00e55bb0
  • Set cc_players[9] = |c00AAAAAA
  • Set cc_players[10] = |c00A4D3EE
  • Set cc_endtag = |r
  • Set MultiboardColumns = 4
  • Set MultiboardRows = ((TeamsTotal + 1) + PlayersTotal)
  • Multiboard - Create a multiboard with 1 columns and 1 rows, titled Statistics
  • Set Multiboard = (Last created multiboard)
  • Multiboard - Change the number of rows for Multiboard to MultiboardRows
  • Multiboard - Change the number of columns for Multiboard to MultiboardColumns
  • For each (Integer A) from 1 to MultiboardRows, do (Actions)
  • For each (Integer B) from 1 to MultiboardColumns, do (Actions)
  • Multiboard - Set the display style for (Last created multiboard) item in
Also, could you please post a screenshot of what you are getting in game?
 
Level 2
Joined
Nov 3, 2010
Messages
7
  • MultiboardInit
    • События
      • Время - Elapsed game time is 5.00 seconds
    • Условия
    • Действия
      • Set cc_players[0] = |cffffcc00
      • Set cc_players[1] = |c00ff0303
      • Set cc_players[2] = |c000042ff
      • Set cc_players[3] = |c001ce6b9
      • Set cc_players[4] = |c00540081
      • Set cc_players[5] = |c00fffc01
      • Set cc_players[6] = |c00feba0e
      • Set cc_players[7] = |c0020c000
      • Set cc_players[8] = |c00e55bb0
      • Set cc_players[9] = |c00AAAAAA
      • Set cc_players[10] = |c00A4D3EE
      • Set cc_endtag = |r
      • Set MultiboardColumns = 4
      • Set MultiboardRows = ((TeamsTotal + 1) + PlayersTotal)
      • Меню паузы - Create a multiboard with 1 columns and 1 rows, titled Статистик...
      • Set Multiboard = (Last created multiboard)
      • Меню паузы - Change the number of rows for Multiboard to MultiboardRows
      • Меню паузы - Change the number of columns for Multiboard to MultiboardColumns
      • For each (Integer A) from 1 to MultiboardRows, do (Actions)
        • Цикл - Действия
          • For each (Integer B) from 1 to MultiboardColumns, do (Actions)
            • Цикл - Действия
              • Меню паузы - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Показать text and Скрыть icons
      • For each (Integer A) from 1 to MultiboardRows, do (Actions)
        • Цикл - Действия
          • Меню паузы - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 3.00% of the total screen width
          • Меню паузы - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 7.00% of the total screen width
          • Меню паузы - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 7.00% of the total screen width
          • Меню паузы - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 7.00% of the total screen width
      • Меню паузы - Set the text for (Last created multiboard) item in column 2, row 1 to Игрок
      • Меню паузы - Set the text for (Last created multiboard) item in column 3, row 1 to Убийств
      • Меню паузы - Set the text for (Last created multiboard) item in column 4, row 1 to Смертей
      • Меню паузы - Показать (Last created multiboard)
      • Set MultiboardStartRow = 1
      • For each (Integer A) from 1 to PlayersTotal, do (Actions)
        • Цикл - Действия
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Если - Условия
              • ((Player((Integer A))) slot status) равно Играет
            • РўРѕ - Действия
              • Set MultiboardStartRow = (MultiboardStartRow + 1)
              • Меню паузы - Set the text for Multiboard item in column 2, row MultiboardStartRow to (cc_players[(Integer A)] + ((Name of (Player((Integer A)))) + cc_endtag))
            • Иначе - Действия

You see i got russian worldedit so some of "multiboard" are just "?"
 

Attachments

  • host.JPG
    host.JPG
    127.9 KB · Views: 1,179
  • ingame.JPG
    ingame.JPG
    113.9 KB · Views: 159
Level 25
Joined
Jul 10, 2006
Messages
3,315
Okay, this will take me a bit longer to work through :)

Some things I can already spot:
"Меню паузы - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Показать text and Скрыть icons"
You can just use 0 for row and 0 for column to affect all rows/columns.
This also applies to other places where you're using loops to set it.

EDIT:
  • For each (Integer A) from 1 to PlayersTotal, do (Actions)
I don't see anywhere that you are setting PlayersTotal

EDIT2:
  • Set MultiboardRows = ((TeamsTotal + 1) + PlayersTotal)
I see now that it must have been set properly, otherwise the number of rows wouldn't be accurate...

Another thing you can try is
  • Player Group - Pick every player in (all players) and do (Actions)
And then assign them places in the multiboard on a (Picked Player) basis.
 
Status
Not open for further replies.
Top