| 10-23-2003, 05:10 AM | #1 |
How can I create a leaderboard for match wins between two opposing forces? Team 1 & 2. After creating a leaderboard for kills I started another for match wins. I decided to display the number of matches won by updating the title of the newly made match wins leaderboard every time a team wins a match. The problem is that the leaderboard I created for match wins won't show up. Is it that I am limited to only one leaderboard? If I disable the kills leaderboard then the match wins leaderboard shows up. If I have both enabled then only the kills leaderboard shows up regardless of what order I show or create them. Is there a way I can get around this? By the way, what is a multiboard? |
| 10-23-2003, 05:17 AM | #2 |
You can, in fact, only have one leaderboard going at a time. A multiboard is like a leaderboard, with two significant differences. One, it let's you hold multiple values and different kinds of values, unlike a leaderboard. Two, it's not available from the GUI trigger interface, unless you're using UMSWE. |
| 10-23-2003, 05:28 AM | #3 |
Here is a basic code for a simple multiboard (note that there are many other functions than the 2 or 3 I show here) Code:
function Trig_Multiboard_Actions takes nothing returns nothing
local multiboard mb
local string stringVar = "Yar"
local integer xRow = 0
local integer yRow = 0
local integer rows = 5
local integer columns = 5
set mb = CreateMultiboard()
call MultiboardSetTitleText( mb, "Multiboard Demo")
call MultiboardSetTitleTextColor( mb, 150, 0, 0, 0 ) // That end zero is an alpha value others are RGB
call MultiboardSetColumnCount( mb, columns) // mb is the multiboard variable
call MultiboardSetRowCount ( mb, rows)
loop
exitwhen xRow == rows
loop
exitwhen yRow == columns
call MultiboardSetItemValue( MultiboardGetItem(mb, xRow, yRow), stringVar)
set yRow = yRow + 1
endloop
set xRow = xRow + 1
set yRow = 0
endloop
call MultiboardDisplay( mb, true)
endfunctionThere are many other things you can do with multiboards, which is why they are so great. |
| 10-23-2003, 05:29 AM | #4 |
So if I use UMSWE can I play this map with friends at a LAN even if they don't have UMSWE, or will I have to make all my friends install UMSWE aswell? Thanks for the answer :) |
| 10-23-2003, 05:33 AM | #5 |
@Mr. Euthanasia Is that language JASS? If it is, are there any free resources to learn the language? |
| 10-23-2003, 01:24 PM | #6 |
Yes, everybody can play a map that you made with UMSWE. The above code is JASS, but you can make Multiboards with GUI Triggers if you have UMSWE. |
| 10-23-2003, 02:30 PM | #7 |
You still need JASS to set up items and set multiboard variables. WEU has that stuff in GUI though. |
| 10-24-2003, 01:27 AM | #8 |
there are a few different good resources to learn JASS, I only know of one off my head, http://jass.sourceforge.net/. Also Kattana made a very good JASS editor, it has text highlighting. Though another very good way to learn is to play around with it, look at some other JASS, convert GUI to JASS and see how each thing works. JASS is very much like javascript and actionscript, though since many languages resemble C++ a lot of the functions and the return type are like C++(if that helps at all, it helped me very much) |
