• 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] Multiboard for Player

Status
Not open for further replies.
I have used search but the problem is still existing.

I have those variables:
MB_P_Board (Array 8- Playercount) and
Tmp_Integer (TmpPlayerForHiding)

  • Unit - A unit enters (Playable map area)
  • -------- Conditions --------
  • MB_P_HasMultiboard[(Player number of (Owner of (Triggering unit)))] Equal to False
  • ((Triggering unit) is An Hero) Equal to True
  • ((Owner of (Triggering unit)) slot status) Equal to Playing
  • (Player number of (Owner of (Triggering unit))) Smaller as 9
  • -------- Actions --------
  • Set Tmp_Integer = (Player number of (Owner of (Triggering unit)))
  • Set MB_P_HasMultiboard[Tmp_Integer] = True
  • Multiboard - Create a multiboard with MB_G_Columns columns and MB_G_Rows rows, titled MB_G_Title
  • Set MB_P_Board[Tmp_Integer] = (Last created multiboard)
  • Multiboard - Minimize MB_P_Board[Tmp_Integer]
  • Multiboard - Hide MB_P_Board[Tmp_Integer]
  • -------- --------
  • -------- Multiboard Settings--------
  • -------- --------
  • -------- Now the Hide part: --------
  • Custom script: if( GetLocalPlayer() == ConvertedPlayer(udg_Tmp_Integer)) then
  • Multiboard - Show MB_P_Board[Tmp_Integer]
  • Custom script: else
  • Custom script: endif
I don't know why but it creates only ONE multiboard and hides it for all other players except the last player which is the onliest which sees it.
 
Last edited:
Level 6
Joined
Jun 30, 2006
Messages
230
It doesn't loop through all players... so it will execute for just once person, the entering player. Have you tested it several times to see if it only works for one player and it is ALWAYS the same player?
 
Status
Not open for further replies.
Top