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

Different Multiboards for 2 players at the same time

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 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.
 
Status
Not open for further replies.
Top