I'm trying to show multiboards locally to the players to allow them to see their own data. I have some questions about this. I run this trigger from another, it will show the multiboard to the player when he selects a unit of his:
Will it work in multiplayer? Won't this desync ?
The other question related to this:
I'm creating multiboard for each player. If I change a text in a row, do I have to use the GetLocalPlayer() or it is just needed when displaying a multiboard?
Trigger:
- Multiboard update
- Events
- Conditions
- Actions
- Custom script: set udg_LOCALPLAYER = GetLocalPlayer()
- Set PLAYER_NUMBER = (Player number of (Triggering player))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Triggering player) Equal to LOCALPLAYER
- Then - Actions
- Multiboard - Show MULTIBOARD[PLAYER_NUMBER]
- Custom script: set udg_UNIT[ udg_PLAYER_NUMBER ] = HERO[ udg_PLAYER_NUMBER - 1 ]
- If - Conditions
Will it work in multiplayer? Won't this desync ?
The other question related to this:
I'm creating multiboard for each player. If I change a text in a row, do I have to use the GetLocalPlayer() or it is just needed when displaying a multiboard?