HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Score Board for each player

03-30-2006, 07:51 AM#1
PerfectlyInsane
Hi I need an an example of how it is done? To have a sepearte scoreboard showing different figures for each player..

BTW I'm still not sure how to encorporate JASS into my GUI code.

a working example would be even better :)
03-30-2006, 12:07 PM#2
Chuckle_Brother
Instead of creating a board for each player it might be easier to use local variables, then use them within an if that is inside a loop.

Collapse JASS:
local real hp=0
local integer c=0
loop
    exitwhen c > 11
     if (GetLocalPlayer() == Player(c)) then
        set hp=GetUnitLifePercent(udg_Unit)
    endif
    set c=c+1
endloop

UPDATE BOARD WITH LOCAL VALUE

Thats just an example, but I dunno, you could do it this way or create 12 boards and then show them to their corresponding player

Collapse JASS:
call SetMultiboardDisplay(BOARD, GetLocalPlayer() == SomePlayer)

**NOTE: I am not on my home computer and I don't know the functions, so those are just guesses at what they should be and all that.
03-31-2006, 11:38 AM#3
PerfectlyInsane
hmmm I dont understand.. :(
03-31-2006, 09:38 PM#4
TaintedReality
The Multiboard functions are pretty much self-explanatory. Just create a Multiboard at the beginning of your map and set it to a variable. Then, when you need to you can change the values using the Multiboard - *** functions in GUI. It takes a while..but like I said it's self-explanatory. Multiboard - Change Title changes the title, Multiboard - Set Item Text sets the text that shows one of your figures, etc. Basically, create values on the 1st column with each player's name, then to the right of those have other columns containing the info you want displayed. Try to do it yourself then come back with any specific questions.
04-02-2006, 04:28 PM#5
BertTheJasser
PM me if you have further questions. ;D
or go to the tut section.