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

[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