• 🏆 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!

[General] GUI Code Need Fix

Status
Not open for further replies.
Level 6
Joined
May 11, 2013
Messages
205
I have problem with this GUI code. I tried to solve my self but i cant fix the common errors.
JASS:
function Trig_Multiboard takes nothing returns nothing
    call CreateMultiboardBJ(7,16,"Multiboard")
    set udg_Multiboard=bj_lastCreatedMultiboard
    call MultiboardSetTitleTextColorBJ(udg_Multiboard,'d',10.,10.,0)
    set bj_forLoopAIndex=1
    set bj_forLoopAIndexEnd=16 
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    call MultiboardSetItemWidthBJ(udg_Multiboard,1,bj_forLoopAIndex,8.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,2,bj_forLoopAIndex,10.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,3,bj_forLoopAIndex,6.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,4,bj_forLoopAIndex,10.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,5,bj_forLoopAIndex,6.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,6,bj_forLoopAIndex,10.)
    call MultiboardSetItemWidthBJ(udg_Multiboard,7,bj_forLoopAIndex,6.)
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    call MultiboardSetItemValueBJ(udg_Multiboard,1,16,"Time")
    call MultiboardSetItemColorBJ(udg_Multiboard,1,16,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,1,1,("|cffff8000|r"+"The Alliance"))
    call MultiboardSetItemColorBJ(udg_Multiboard,1,1,40.,80.,.0,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,1,3,("|cff8B4513"+"The Horde"))
    call MultiboardSetItemColorBJ(udg_Multiboard,1,3,60.,40.,.0,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,2,1,"Total hero kills")
    call MultiboardSetItemColorBJ(udg_Multiboard,2,1,100.,10.,10.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,2,3,"Total hero kills")
    call MultiboardSetItemColorBJ(udg_Multiboard,2,3,100.,10.,10.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,4,1,"Total assists")
    call MultiboardSetItemColorBJ(udg_Multiboard,4,1,100.,100.,.0,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,4,3,"Total assists")
    call MultiboardSetItemColorBJ(udg_Multiboard,4,3,100.,100.,.0,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,6,1,"Total creep kills")
    call MultiboardSetItemColorBJ(udg_Multiboard,6,1,10.,100.,10.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,6,3,"Total creep kills")
    call MultiboardSetItemColorBJ(udg_Multiboard,6,3,10.,100.,10.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,3,1,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,3,3,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,5,1,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,5,3,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,7,1,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,7,3,"0")
    call MultiboardSetItemValueBJ(udg_Multiboard,2,5,"Players")
    call MultiboardSetItemColorBJ(udg_Multiboard,2,5,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,3,5,"Hero kills")
    call MultiboardSetItemColorBJ(udg_Multiboard,3,5,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,4,5,"Assists")
    call MultiboardSetItemColorBJ(udg_Multiboard,4,5,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,5,5,"Deaths")
    call MultiboardSetItemColorBJ(udg_Multiboard,5,5,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,6,5,"Ultimate cooldowns")
    call MultiboardSetItemColorBJ(udg_Multiboard,6,5,100.,80.,20.,0)
    call MultiboardSetItemValueBJ(udg_Multiboard,7,5,"Creeps")
    call MultiboardSetItemColorBJ(udg_Multiboard,7,5,100.,80.,20.,0)
    set bj_forLoopAIndex=6
    set bj_forLoopAIndexEnd=15
loop
    exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    if(Trig_Multiboard())then
    call MultiboardSetItemValueBJ(udg_Multiboard,2,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+GetPlayerName(Player(-1+((bj_forLoopAIndex-5))))))
else
    call MultiboardSetItemValueBJ(udg_Multiboard,2,bj_forLoopAIndex,"<Unused>")
endif
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    call MultiboardSetItemIconBJ(udg_Multiboard,1,2,"ReplaceableTextures\\CommandButtons\\BTNFootman.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,1,4,"ReplaceableTextures\\CommandButtons\\BTNChaosGrunt.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,2,2,"ReplaceableTextures\\CommandButtons\\BTNRifleman.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,2,4,"ReplaceableTextures\\CommandButtons\\BTNHeadhunter.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,3,2,"ReplaceableTextures\\CommandButtons\\BTNKnight.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,3,4,"ReplaceableTextures\\CommandButtons\\BTNTauren.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,4,2,"ReplaceableTextures\\CommandButtons\\BTNSorceress.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,4,4,"ReplaceableTextures\\CommandButtons\\BTNShaman.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,5,2,"ReplaceableTextures\\CommandButtons\\BTNMortarTeam.blp")
    call MultiboardSetItemIconBJ(udg_Multiboard,5,4,"ReplaceableTextures\\CommandButtons\\BTNDemolisher.blp")
    set bj_forLoopAIndex=1
    set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    set bj_forLoopBIndex=1
    set bj_forLoopBIndexEnd=16
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
    call MultiboardSetItemStyleBJ(udg_Multiboard,bj_forLoopAIndex,bj_forLoopBIndex,true,false)
    set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    set bj_forLoopAIndex=1
    set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    call MultiboardSetItemStyleBJ(udg_Multiboard,bj_forLoopAIndex,2,true,true)
    call MultiboardSetItemStyleBJ(udg_Multiboard,bj_forLoopAIndex,4,true,true)
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    call MultiboardSetItemStyleBJ(udg_Multiboard,6,2,true,false)
    call MultiboardSetItemStyleBJ(udg_Multiboard,6,4,true,false)
    set bj_forLoopAIndex=6
    set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    call MultiboardSetItemStyleBJ(udg_Multiboard,1,bj_forLoopAIndex,true,true)
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    call MultiboardDisplay(udg_Multiboard,true)
endfunction
function InitTrig_Create takes nothing returns nothing
    set gg_trg_Glow=CreateTrigger()
    call TriggerRegisterTimerEventSingle(gg_trg_Glow,.1)
    call TriggerAddAction(gg_trg_Glow,function Trig_Multiboard)
endfunction
function Trig_Update_Actions takes nothing returns nothing
    local string cellValue
    local integer ultiCd
    set udg_Time=(udg_Time+1)
    call MultiboardSetItemValueBJ(udg_Multiboard,2,16,getTime())
    call MultiboardSetItemValueBJ(udg_Multiboard,1,2,("|cff006400"+I2S(udg_NumberOfFootmen)))
    call MultiboardSetItemValueBJ(udg_Multiboard,2,2,("|cff006400"+I2S(udg_NumberOfFusiller)))
    call MultiboardSetItemValueBJ(udg_Multiboard,3,2,("|cff006400"+I2S(udg_NumberOfKnights)))
    call MultiboardSetItemValueBJ(udg_Multiboard,4,2,("|cff006400"+I2S(udg_NumberOfSorceress)))
    call MultiboardSetItemValueBJ(udg_Multiboard,5,2,("|cff006400"+I2S(udg_NumberOfMortar)))
    call MultiboardSetItemValueBJ(udg_Multiboard,1,4,("|cff8B4513"+I2S(udg_NumberOfGrunt)))
    call MultiboardSetItemValueBJ(udg_Multiboard,2,4,("|cff8B4513"+I2S(udg_NumberOfHeadHunter)))
    call MultiboardSetItemValueBJ(udg_Multiboard,3,4,("|cff8B4513"+I2S(udg_NumberOfTauren)))
    call MultiboardSetItemValueBJ(udg_Multiboard,4,4,("|cff8B4513"+I2S(udg_NumberOfShaman)))
    call MultiboardSetItemValueBJ(udg_Multiboard,5,4,("|cff8B4513"+I2S(udg_NumberOfDemolisher)))
    set bj_forLoopAIndex=6
    set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
    call MultiboardSetItemValueBJ(udg_Multiboard,1,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+("Level"+I2S(GetHeroLevel(udg_HeroPlaying[(bj_forLoopAIndex-5)])))))
    call MultiboardSetItemValueBJ(udg_Multiboard,3,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+I2S(udg_HeroKilledNumber[(bj_forLoopAIndex-5)])))
    call MultiboardSetItemValueBJ(udg_Multiboard,4,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+I2S(udg_HeroAssists[(bj_forLoopAIndex-5)])))
    call MultiboardSetItemValueBJ(udg_Multiboard,5,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+I2S(udg_HeroDeadNumber[(bj_forLoopAIndex-5)])))
    set cellValue=""
if IsPlayerAlly(Player(bj_forLoopAIndex-6),GetLocalPlayer())then
    set ultiCd=R2I(TimerGetRemaining(udg_ultiTimerList[bj_forLoopAIndex-6]))
if ultiCd>0 then
    set cellValue=udg_Player_Colors[(bj_forLoopAIndex-5)]+I2S(ultiCd)
endif
endif
    call MultiboardSetItemValueBJ(udg_Multiboard,6,bj_forLoopAIndex,cellValue)
    call MultiboardSetItemValueBJ(udg_Multiboard,7,bj_forLoopAIndex,(udg_Player_Colors[(bj_forLoopAIndex-5)]+I2S(udg_CreepKilledNumber[(bj_forLoopAIndex-5)])))
    set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
    call MultiboardSetItemValueBJ(udg_Multiboard,3,1,I2S((udg_HeroKilledNumber[1]+((udg_HeroKilledNumber[2]+udg_HeroKilledNumber[3])+(udg_HeroKilledNumber[4]+udg_HeroKilledNumber[5])))))
    call MultiboardSetItemValueBJ(udg_Multiboard,3,3,I2S((udg_HeroKilledNumber[6]+((udg_HeroKilledNumber[7]+udg_HeroKilledNumber[8])+(udg_HeroKilledNumber[9]+udg_HeroKilledNumber[A])))))
    call MultiboardSetItemValueBJ(udg_Multiboard,5,1,(""+I2S((udg_HeroAssists[1]+(udg_HeroAssists[2]+(udg_HeroAssists[3]+(udg_HeroAssists[4]+udg_HeroAssists[5])))))))
    call MultiboardSetItemValueBJ(udg_Multiboard,5,3,(""+I2S((udg_HeroAssists[6]+(udg_HeroAssists[7]+(udg_HeroAssists[8]+(udg_HeroAssists[9]+udg_HeroAssists[A])))))))
    call MultiboardSetItemValueBJ(udg_Multiboard,7,1,I2S((udg_CreepKilledNumber[1]+((udg_CreepKilledNumber[2]+udg_CreepKilledNumber[3])+(udg_CreepKilledNumber[4]+udg_CreepKilledNumber[5])))))
    call MultiboardSetItemValueBJ(udg_Multiboard,7,3,I2S((udg_CreepKilledNumber[6]+((udg_CreepKilledNumber[7]+udg_CreepKilledNumber[8])+(udg_CreepKilledNumber[9]+udg_CreepKilledNumber[A])))))
    call MultiboardDisplay(udg_Multiboard,true)
endfunction
function InitTrig_Update takes nothing returns nothing
    set gg_trg_Central_Spawn_Alliance=CreateTrigger()
    call TriggerRegisterTimerEventPeriodic(gg_trg_Central_Spawn_Alliance,1.)
    call TriggerAddAction(gg_trg_Central_Spawn_Alliance,function Trig_Update_Actions)
endfunction
function Trig_Heroes_Conditions takes nothing returns boolean
    return(IsUnitType(GetBuyingUnit(),UNIT_TYPE_HERO))!=null
endfunction
function Trig_Heroes_Actions takes nothing returns nothing
    call TriggerSleepAction(.4)
    set udg_HeroPlaying[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=GetBuyingUnit()
endfunction
function InitTrig_Heroes takes nothing returns nothing
    set gg_trg_Heroes=CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Heroes,EVENT_PLAYER_UNIT_SELL)
    call TriggerAddCondition(gg_trg_Heroes,Condition(function Trig_Heroes_Conditions))
    call TriggerAddAction(gg_trg_Heroes,function Trig_Heroes_Actions)
endfunction
function Trig_Kill_Conditions takes nothing returns boolean
    return((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==false)and(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnit())))and(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false)and(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER))!=null
endfunction
function Trig_Kill_Actions takes nothing returns nothing
    set udg_CreepKilledNumber[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_CreepKilledNumber[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
endfunction
function InitTrig_Kill takes nothing returns nothing
    set gg_trg_Kill=CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Kill,EVENT_PLAYER_UNIT_DEATH)
    call TriggerAddCondition(gg_trg_Kill,Condition(function Trig_Kill_Conditions))
    call TriggerAddAction(gg_trg_Kill,function Trig_Kill_Actions)
endfunction
function Trig_Die_Conditions takes nothing returns boolean
    return((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO))and((1+GetPlayerId(GetOwningPlayer(GetDyingUnit())))<B)and(GetPlayerSlotState(GetOwningPlayer(GetDyingUnit()))==PLAYER_SLOT_STATE_PLAYING))!=null
endfunction
function Trig_Die_Func002C takes nothing returns boolean
    return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnit())))and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Die_Actions takes nothing returns nothing
    set udg_HeroDeadNumber[(1+GetPlayerId(GetOwningPlayer(GetDyingUnit())))]=(udg_HeroDeadNumber[(1+GetPlayerId(GetOwningPlayer(GetDyingUnit())))]+1)
if(Trig_Die_Func002C())then
    set udg_HeroKilledNumber[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_HeroKilledNumber[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
endif
endfunction
function InitTrig_Die takes nothing returns nothing
    set gg_trg_Die=CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Die,EVENT_PLAYER_UNIT_DEATH)
    call TriggerAddCondition(gg_trg_Die,Condition(function Trig_Die_Conditions))
    call TriggerAddAction(gg_trg_Die,function Trig_Die_Actions)
endfunction

There is a big list of the errors here. However its not full.http://www.hiveworkshop.com/forums/pastebin.php?id=gr3lyi
The corrected code must create this http://s7.directupload.net/images/121109/3ll4myf7.png

P.S The original triggerer, didn't share the GUI version. So i have only this.
 
Level 6
Joined
May 11, 2013
Messages
205
yes, the code is from deprotected map. That's why it has so many mess, and like i said. Mapper didn't give the original GUI trigger for the multiboard.
 
Level 6
Joined
May 11, 2013
Messages
205
I only need to see how its done, then add additional stuff to it. This shouldn't be prohibited. The guy is not hive member, nor he upload his map here. Also he didn't give credits for the models/icon that he used in the map. I'm not advanced coder. That's why i need to see how its done. Otherwise why i waste time deprotect map?
 
The globals are undeclared, which means that you have to declare the globals manually using the variable editor or using globals blocks (if you have JassNewGenPack). But that is a very tedious task, especially for this code.

Even if you declared all the variables, there is no guarantee that the multiboard would work as you want to since half of those variables might be set in different triggers throughout the map.

It is good that you want to see how it is done. :) But looking at a bunch of garbled code won't help you learn. Making multiboards is actually really easy once you get the hang of it, especially if you just want to track things like kills!

Check this tutorial out, and see if it will be useful for you:
http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/all-about-multiboards-84942/
There should be a section on tracking kills. Once you read through it, try it out on your own. If you have any questions, feel free to make a new thread! Trust me, if you follow a tutorial and create the trigger yourself, you'll feel 100x more powerful than just copying over a trigger. You'll learn a lot more too. That is why modding is so awesome.
 
Level 6
Joined
May 11, 2013
Messages
205
This is what i've done so far. I experimented but i have problem. On the photo. The "0" number should match the creep spawn units as number. That means there will be recruit center, and whenever unit is recruited it must show the total numbers of each unit. Also how to make it with other color? Its not finished yet, because i'm stuck with the numbers :wconfused: http://www.hiveworkshop.com/forums/pastebin_data/6lv6a3/multiboard.jpg
  • Multiboard
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 7 columns and 16 rows, titled Multiboard
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 8.00% of the total screen width
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (String((Number of units in (Units in (Playable map area)))))
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNFootman.blp
      • Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNRifleman.blp
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNKnight.blp
      • Multiboard - Set the icon for (Last created multiboard) item in column 4, row 2 to ReplaceableTextures\CommandButtons\BTNSorceress.blp
      • Multiboard - Set the icon for (Last created multiboard) item in column 5, row 2 to ReplaceableTextures\CommandButtons\BTNMortarTeam.blp
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |cffff8000THE ALLIA...
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 5, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 6, row 16 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 15 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 7, row 16 to 8.00% of the total screen width
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Maximize (Last created multiboard)
 
Level 12
Joined
Mar 17, 2007
Messages
412
yes, the code is from deprotected map. That's why it has so many mess, and like i said. Mapper didn't give the original GUI trigger for the multiboard.

The mapper didn't give the original code because it was protected in the first place.

I only need to see how its done, then add additional stuff to it. This shouldn't be prohibited. The guy is not hive member, nor he upload his map here. Also he didn't give credits for the models/icon that he used in the map. I'm not advanced coder. That's why i need to see how its done. Otherwise why i waste time deprotect map?

Once you start a discussion of a deprotected map it's prohibited it doesn't matter if the mapper is not part of this community. Don't put "time" on others shoulders because you think it wasted your time.

Topic is out of context & this is the wrong section to be posting in, I would advise you start by reading the forum rules.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
How do you create the units that need to be counted by that 0?

If you create them via triggers, then you need a variable that will store the unit count whenever a unit is created. Alternatively, you could use a variable that holds the spawn count and use it to create the right amount of units and to output the right value on the multiboard.
 
Status
Not open for further replies.
Top