• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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