• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

One multiboard per player?

Status
Not open for further replies.
Level 6
Joined
Aug 28, 2015
Messages
213
In GUI use custom scripts and LocalPlayer like:
Create in the variabels a multyboard here "MyMultyboard" with an array of amount of player here 12 and two integer: here "_i" and "MyInteger"

Event:
Playtime == 5 seconds// or when ever you want to show the multyboard.
Action:
Loop For _i from 1 to 12
-- Create multyboard
-- Set MyMultyboard[_i] = last created
Set MyInteger = 0
Loop For _i from 0 to 11:
-- Custom Scrip: if LocalPlayer == PlayerNumber(udg__i) then
-- -- Set MyInteger = _i + 1
-- Custom script: endif
Show MyMultyboard[MyInteger] to player convert player number (MyInteger)

Now you can acces all multyboards by their index/ player number

Everything is from top of my head and not 100% accurate, check out the tutorial section for more details.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,177
In GUI use custom scripts and LocalPlayer like:
Create in the variabels a multyboard here "MyMultyboard" with an array of amount of player here 12 and two integer: here "_i" and "MyInteger"
That is now how it is done... You need to show the multiboard locally. What your trigger is doing uses a non existent action and increments a loop locally.

Create an array of multiboards. Modify them appropriately for each player. Then when you want to show a multiboard to a specific player use...
JASS:
if udg_YourPlayer == GetLocalPlayer() then
    call MultiboardDisplay(udg_YourMultiboard, true)
endif

This works because multiboard display state is a local property and not synchronized between clients.
 
Status
Not open for further replies.
Top