| 05-19-2004, 11:19 PM | #1 |
Gosh this is pissin me off. I have been mulling it over for about an hour and I can't make sense of it. It is all supposed to work right, but it displays nothing in the four rows. WTF! Code:
function MainMenu takes integer playerId returns nothing
local multiboard mb = Multi(playerId)
local integer x = 1
local integer y = 4
call MultiboardDisplay(mb,false)
call MultiboardSetRowCount(mb,4)
call MultiboardSetTitleText(mb,"Main Menu")
loop
exitwhen x > y
if ( x == udg_CurrentRow ) then
call MultiboardSetItemValueBJ(mb,1,x,"|cffffcc00"+GetArrayString(0,x)+"|r")
else
call MultiboardSetItemValueBJ(mb,1,x,GetArrayString(0,x))
call DisplayTextToForce(GetPlayersAll(),GetArrayString(0,x))
endif
// call MultiboardSetItemStyleBJ(mb,1,x,true,false )
set x = x + 1
endloop
// if (GetLocalPlayer() == Player(playerId)) then
call MultiboardDisplay(mb,true)
// endif
set mb = null
endfunctionIf you want to see the strings, they are defined in a function that runs at map init and work correctly. Code:
//Main Menu
call StoreArrayString(0,1,"Armor")
call StoreArrayString(0,2,"Potions")
call StoreArrayString(0,3,"Ability Set")
call StoreArrayString(0,4,"Misc.") |
| 05-20-2004, 08:48 AM | #2 |
Never mind, I figured this one out too. |
