• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Multiboard for one player only?

Status
Not open for further replies.
Level 6
Joined
Feb 15, 2005
Messages
183
I would be interested in something like this. I know I have played games where each person has their personal stats in their own board. I have a map I am working on that could really benefit from individual boards for different players.
 
Level 5
Joined
Jul 31, 2004
Messages
108
// Trigger: ShowMultiboardforPlayer
//===========================================================================
function Trig_ShowMultiboards_Func001A takes nothing returns nothing
if GetLocalPlayer() == GetEnumPlayer() then
call MultiboardDisplayBJ( true, udg_PlayerMultiboard[GetConvertedPlayerId(GetEnumPlayer())] )
endif
endfunction

function Trig_ShowMultiboards_Actions takes nothing returns nothing
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_ShowMultiboards_Func001A )
endfunction

//===========================================================================
function InitTrig_ShowMultiboardforPlayer takes nothing returns nothing
set gg_trg_ShowMultiboardforPlayer = CreateTrigger( )
call TriggerAddAction( gg_trg_ShowMultiboardforPlayer, function Trig_ShowMultiboards_Actions )
endfunction

This might be it. I "deprotected" HaE No the line

call MultiboardDisplayBJ( true, udg_PlayerMultiboard[GetConvertedPlayerId(GetEnumPlayer())] )

Generates errors. LOL I didn't change variable. It doesn't work.
 
Status
Not open for further replies.
Top