HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with multiboard ...

01-17-2004, 02:31 PM#1
ABM
How can i create a multiboard for each player in game:

ex: multiboard 'pizza recipe' player1
tomato <tomato1>
cheese <cheese1>
olives <olives1>
hot pepper <hotpepper1>

multiboard 'pizza recipe' player2
tomato <tomato2>
cheese <cheese2>
olives <olives2>
hot pepper <hot pepper2>

each multiboard are visible only by the concerned player, so i create one multiboard for player1 only and one multiboard for player2 only and so on.
the <tomato1> is a variable integer used by player1 to determine how many tomato he put in the pizza.

is this possible......without using Jass?
if not could you write me the code for a multiboard in jass for:

a 1 colum 4 row multiboard for 8 player


or is it possible to do it with only using leaderboard?


please help me......:(
01-17-2004, 05:53 PM#2
COOLer
You make 1 mult board for ecah player then just display each one if player is = to local payer. Gohere for my mult board demo map it shoud anwser all your questions!
01-18-2004, 05:22 PM#3
ABM
i don't have the UMSW or any other editor....
since the crash of old editor with the new 1.13 patch i rather use the official editor....

could you please tell me in a simple way with example if possible how to set and how to use the local player = things.

i know how to create a multiboard, i know how to put width, to change icon, to set value.....
the only thing i don't know is how to make a different multiboard for each player with same value and how to show each multiboard only to the concerned player....

please COOler could you help me ?

thanks...
01-18-2004, 10:10 PM#4
VolEs
Create a multi board for each player individually, if you want them to have different values.. but if you want them to be the same values, there is no need for more than one.. but after you have determined that..

make sure your not forgeting

Show (last created blah) to players
01-18-2004, 11:32 PM#5
COOLer
multboards can only be displayed to one player by using an if
statement. if the player you want is = local player.
it will not cause any lag or disconnects.
01-19-2004, 08:10 AM#6
ABM
you are right VolEs what i look is 8 multi board with same 'reference' and different value. each board shown only to each of the concerned player.
multiboard1 for player1 and so on...

i know how to do it with leader board but i can't find any local in the if statement. if player = local ??

i use the basic world editor.... and i really don't know how to use a local variable...
in the variable editor there is no <local> variable...
the multiboard has only create a multiboard column row title and no create for player X .
i give you an exact example of what i want could you write down the exact ligne of trigger.

EVENT: game time elapsed 5 sec

condition: none

action: multiboard- create a multiboard with 1 column and 4 row titled (Name of Player 1 rouge) ( 's + Board).
multiboard- set the text (for last created multiboard) in column 1 row 1 to (Divinity + <God1>)
multiboard- set the text (for last created multiboard) in column 1 row 2 to (Mana + <Mana1>)
multiboard- set the text (for last created multiboard) in column 1 row 3 to (Gold + <Gold1>)
multiboard- set the text (for last created multiboard) in column 1 row 4 to (Stone + <Stone1>)
multiboard- show last created multiboard.


i didn't put the set icon, set width because it is not very important.
so how can i transform this multiboard in eight multiboard that will be each shown to only one player???

thanks for all your answer please help me finish this......
01-19-2004, 09:29 AM#7
Cubasis
to make this clear...

the Local Player action is "only" awailable in jass, or in UMSWE...

So, whatever knowledge you have about creating Multiboard..

You can either get a UMS world editor, then you can just add a if-statement with the condition as "Local Player == Player 1" and etc etc.

Or, you can convert your trigger to jass.....find the "Display" action (i'm not sure that the GUI calls specify this specifically (display)) and write above and below it:


Code:
loop
   exitwhen i == 8 // Write the maximum number of players here
      if ( GetLocalPlayer() == Player( i ) ) then
         *yourdisplayaction-here*
      endif
   set i = i + 1
endloop

note, you must first put the following line at the top of your converted function:
(f.ex., below the header of the main action-function, which looks like this):
function #####_Actions takes nothing returns nothing
*local integer i = 0*

It has to be abow all other code, and below the header.
And... that code expects you to display a multiboard inside a multiboard array. F.ex. "multiboard - show MyMultiBoardArray[4]" where converted to custom-text (jass) you'd replace the "4" constant there with "i". And the multiboard for player 1 would be in element "0".

So, first you would create 8 multiboards, putting each in 1 element from 0-7. then you would convert it to jass, find the display-statement, and put the above code around it, put the local-variable statement at the top of the function, then it should work.

Anyways, these are your options (there is also a way to do this even more compact in 1 line, but as i'm in school, i can't be sure about the Display function name)

Cubasis
01-19-2004, 05:12 PM#8
VolEs
Yea, get Umswe :) and listen to Cubasis40, he is more skilled than I.