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.
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.