• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] MultiBoard help

Status
Not open for further replies.
Level 9
Joined
Jun 7, 2008
Messages
440
Hey, I have a slight difficulty with this multiboard. I have a trigger which when a hero dies, the owning player loses a certain gold amount depending on where their hero dies. One of my problems is, I have a multiboard with 10 players. I have the integer variable set for each players amount loss, I don't know how to incorporate it into the multiboard.

My other problem is, how do I add all playing players to my multiboard via "INTEGER A". For instance available player slots are (1,2,5,8,9(Light) - 3,4,6,7,11(Dark) 10,12(computer))

Player 0(1) is playing Player 2(3) is playing
Player 1(2) is playing Player 3(4) IS NOT PLAYING
Player 4(5) IS NOT PLAYING Player 5(6) IS NOT PLAYING
Player 7(8) IS NOT PLAYING Player 6(7) is playing
Player 8(9) is playing Player 10(11) is playing

Player 9(10) and 11(12) are computers.

Edit: Added GUI Player types in Brackets () Sorry :p
 
Last edited:
Level 7
Joined
Mar 22, 2010
Messages
228
i do it in jass ok?
JASS:
function multiboard_actions takes nothing returns nothing
    local integer i = 1
    call CreateMultiboardBJ( 1, 1, "machris13" )
    loop
        call MultiboardSetRowCount( GetLastCreatedMultiboard(), i + 1 )
        //you add your desired actions here, like changing names and icons just put in row "i + 1" (without the qoutes)
        set i = i + 1
        exitwhen i == 12
    endloop
endfunction

//========================================================
function InitTrig_MB takes nothing returns nothing
     set gg_trg_mb = CreateTrigger(   )
     call TriggerRegisterTimerEventSingle( gg_trg_mb, 0.00 )
     call TriggerAddAction( gg_trg_mb, function multiboard_actions )
endfunction

//do not run it in Initialization because multiboards dont take effect
//i dont guarantee full effect bcoz i havnt tried it yet, but if it works just add credits to your map and rep ^^ XD :P (dont forget)
 
Level 9
Joined
Jun 7, 2008
Messages
440
Ya, That would help alot. Another problem I have. Player texts are set in teams (meaning The team colors are not in any chronological order).

EDIT: This problem was solved. Thanks +rep
 
Last edited:
Status
Not open for further replies.
Top