• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Multiboard

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
I can find only one way to do this
a Variable named TEMPVAR (integer)

For each A integer from 1 to 12
-Loop Actions
--Custom script: set bj_wantDestroyGroup = true (dont ask why)
--Pick Every Unit Owned by Player(integer A)
---Loop Actions
----Set TEMPVAR = TEMPVAR + Level of (Picked Unit)
--Set INCOME[integer A] = TEMPVAR

this will set INCOME[1] to level calculation of all units owned by player 1
and 2 for player 2 and etc
 
Ok, so here's what you do:

Variable:Type:
Income_Multiboard[Multiboard]

Triggers:
  • Multiboard Init
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 2 columns and 4 rows, titled Income
      • Set Income_Multiboard = (Last created multiboard)
      • Multiboard - Minimize Income_Multiboard
      • Trigger - Turn on Multiboard Update <gen>
  • Multiboard Update
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Multiboard - Set the icon for Income_Multiboard item in column 1, row 1 to ReplaceableTextures\TeamColor\TeamColor00.blp
      • Multiboard - Set the text for Income_Multiboard item in column 1, row 1 to Player Red:
      • Multiboard - Set the width for Income_Multiboard item in column 1, row 1 to 10.00% of the total screen width
      • Multiboard - Set the icon for Income_Multiboard item in column 1, row 2 to ReplaceableTextures\TeamColor\TeamColor01.blp
      • Multiboard - Set the text for Income_Multiboard item in column 1, row 2 to Player Blue:
      • Multiboard - Set the width for Income_Multiboard item in column 1, row 2 to 10.00% of the total screen width
      • Multiboard - Set the icon for Income_Multiboard item in column 1, row 3 to ReplaceableTextures\TeamColor\TeamColor02.blp
      • Multiboard - Set the text for Income_Multiboard item in column 1, row 3 to Player Teal:
      • Multiboard - Set the width for Income_Multiboard item in column 1, row 3 to 10.00% of the total screen width
      • Multiboard - Set the icon for Income_Multiboard item in column 1, row 4 to ReplaceableTextures\TeamColor\TeamColor03.blp
      • Multiboard - Set the text for Income_Multiboard item in column 1, row 4 to Player Purple:
      • Multiboard - Set the width for Income_Multiboard item in column 1, row 4 to 10.00% of the total screen width
      • Multiboard - Set the text for Income_Multiboard item in column 2, row 1 to (String((2 x (Hero level of (Picked unit)))))
      • Multiboard - Set the icon for Income_Multiboard item in column 2, row 1 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Income_Multiboard item in column 2, row 1 to 5.00% of the total screen width
      • Multiboard - Set the text for Income_Multiboard item in column 2, row 2 to (String((2 x (Hero level of (Picked unit)))))
      • Multiboard - Set the icon for Income_Multiboard item in column 2, row 2 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Income_Multiboard item in column 2, row 2 to 5.00% of the total screen width
      • Multiboard - Set the text for Income_Multiboard item in column 2, row 3 to (String((2 x (Hero level of (Picked unit)))))
      • Multiboard - Set the icon for Income_Multiboard item in column 2, row 3 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Income_Multiboard item in column 2, row 3 to 5.00% of the total screen width
      • Multiboard - Set the text for Income_Multiboard item in column 2, row 4 to (String((2 x (Hero level of (Picked unit)))))
      • Multiboard - Set the icon for Income_Multiboard item in column 2, row 4 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Income_Multiboard item in column 2, row 4 to 5.00% of the total screen width

You might wanna change the "Picked Unit" to a variable, or it'll be alot of work...
 
Status
Not open for further replies.
Top