function Trig_initEmpData_Actions takes nothing returns nothing
local integer i = 0
local integer j
loop
exitwhen i > 9
// ensure the player exists
if (GetPlayerSlotState(Player(i)) == PLAYER_SLOT_STATE_PLAYING) then
call CreateMultiboardBJ( 2, 12, GetPlayerName(ConvertedPlayer(i+1)) + "'s Statistics" )
set udg_mbEmpData[i] = GetLastCreatedMultiboard()
set j = 1
loop
exitwhen j > 12
// formatting
call MultiboardSetItemStyleBJ(udg_mbEmpData[i], 1, j, true, false)
call MultiboardSetItemStyleBJ(udg_mbEmpData[i], 2, j, true, false)
call MultiboardSetItemWidthBJ(udg_mbEmpData[i], 1, j, 7.5)
call MultiboardSetItemWidthBJ(udg_mbEmpData[i], 2, j, 4.0)
set j = j + 1
endloop
// set colors
call MultiboardSetItemColorBJ(udg_mbEmpData[i], 1, 1, 25, 25, 175, 0)
call MultiboardSetItemColorBJ(udg_mbEmpData[i], 1, 2, 15, 15, 215, 0)
call MultiboardSetItemColorBJ(udg_mbEmpData[i], 1, 3, 250, 25, 25, 0)
call MultiboardSetItemColorBJ(udg_mbEmpData[i], 1, 1, 25, 25, 175, 0)
call MultiboardSetItemColorBJ(udg_mbEmpData[i], 1, 6, 25, 25, 175, 0)
// set labels
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 1, "Hero" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 2, "Lives:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 3, "Attributes:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 4, "Skill Points:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 5, " " )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 6, "Empire:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 7, "Happiness:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 8, "Population:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 9, "Food:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 10, "Lumber:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 11, "Ore:" )
call MultiboardSetItemValueBJ( udg_mbEmpData[i], 1, 12, "Oil:" )
set i = i + 1
endif
endloop
endfunction
//===========================================================================
function InitTrig_initMulti takes nothing returns nothing
set gg_trg_initMulti = CreateTrigger( )
call TriggerAddAction( gg_trg_initMulti, function Trig_initEmpData_Actions )
endfunction