• 🏆 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!

[JASS] Different multiboards for each player

Status
Not open for further replies.
Level 1
Joined
Oct 23, 2004
Messages
2
I got this little problem...
i want to make a multi board (mb) for each player.
that sounds easily but the mb needs to be different for each player. i thought about local but nothing seems to work. when i starts the trigger with player 1 i gets a mb and it looks like working, but then i with player 2 to starts his mb and it overwrites the first one and both players have player 2s multiboard.
can JAZZ fix it or is it just impossibel.

can someone please help me the trigger looks like this.

Player 1 Red

event
unit finishes construction
Condition
Constructed structure equal to city
owner of triggering unit equal to 1 red
Actions
Create mb 5 col 2 rows titled your people
set nazimultiboard(1) to last created multiboard
Hide last created mb
Custom Script set udg_Temp_Player = GetLocalPlayer()
If Then Else
Condition
Temp_Player = 1 red
Then
MB Show NaziMultiboard(1)
Else
Nothing

Player 2 Blue

event
unit finishes construction
Condition
Constructed structure equal to city
owner of triggering unit equal to 2 blue
Actions
Create mb 5 col 2 rows titled your people
set nazimultiboard(2) to last created multiboard
Hide last created mb
Custom Script set udg_Temp_Player = GetLocalPlayer()
If Then Else
Condition
Temp_Player = 2 blue
Then
MB Show NaziMultiboard(2)
Else
Nothing

I Cant understanf why it owerwrites but again im am new at Custom Script and local variabels. Please help.
 

ctb

ctb

Level 3
Joined
Jul 26, 2004
Messages
21
I guess the problem is that the Multiboards has to be shown at the EXACTLY same time to the local players.
 
Status
Not open for further replies.
Top