• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[gui]Multiboard/Leaderboard

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
I need a simple Multiboard/Leaderboard thats show Reals[index] value
I use real to multipli stats at certain lvl!!!

Exemple:Dbz Tribute Ultra(same board i need)

Value:
player 1 : reals[1]/reals[2]
player 2 : reals[3]/reals[4]
player 3 : reals[5]/reals[6]
player 4 : reals[7]/reals[8]
player 5 : reals[9]/reals[10]
player 6 : reals[11]/reals[12]
player 7 : reals[13]/reals[14]
player 8 : reals[15]/reals[16]
player 9 : reals[17]/reals[18]
player 10 : reals[19]/reals[20]

thx for helping ill give credits for next map im making
 
Wait, do you want it to show the outcome of the real[1] divided by real[2] or as a string like the / is a divider not division sign?

Also, I on the first line before it says players and the reals, do you want like:
Player Real1 Real2

And, you want it to only show players who are playing too right?
Eh, fourth, you want the update trigger or just to make the basis?
 
i write it wrong only value that being use are
thoase value show Power level of multiplier stats that current hero of player use,
only 1 unit is used by player

only show those reals value and for title :Power level
Need to show only player that play if they arent play should be replace by Closed or idk
& if u can make it with update trigger so i can add other update in future
player 1 : reals[1]
player 2 : reals[3]
player 3 : reals[5]
player 4 : reals[7]
player 5 : reals[9]
player 6 : reals[11]
player 7 : reals[13]
player 8 : reals[15]
player 9 : reals[17]
player 10 : reals[19]
 
i test it and value dont show up


there is the system i made same as dbz tribute but for naruto exemple:
the guy is lvl 30 he type ''Gen'' and his stats are X2 and its show on multiboard under power level row ''2,000x''

but i found value exemple that u need for Player and Power

JASS:
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,1,bj_forLoopAIndex,GetPlayerName(Player(-1+((bj_forLoopAIndex-1)))))
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,bj_forLoopAIndex,(R2S(udg_reals02[(bj_forLoopAIndex-1)])+"x"))
 
It doesn't show for you? I checked it and I've attached an image of it--I made it only show the value and update it if the player actually picked a hero. Or did you want it to show "2.00x"? Or did you try importing it to your map and it didn't work? Cause I can't do anything else...really all that's left is how you put it into your map and change it to how you want.

Btw, in the image, the hero is red cause I had the team color thing on accident.
 

Attachments

  • multiboardTestImage.jpg
    multiboardTestImage.jpg
    269.3 KB · Views: 177
its wasnt show up anything when i add it in my map!!!

theres is the code that from dbz tributeand below theres is apicture, when i gain certain lvl i can type for exeple : ''gen'' than ur initial stats will x2(if real value are 2x) if multiplier is 3.5x normal stats i want it to show the stats multiplier :P


JASS:
function Trig_Create_Leaderboard_Actions takes nothing returns nothing
	call DisableTrigger(GetTriggeringTrigger())
	call CreateMultiboardBJ(2,13,"TRIGSTR_6500")
	call MultiboardSetItemWidthBJ(bj_lastCreatedMultiboard,1,0,10.00)
	call MultiboardSetItemWidthBJ(bj_lastCreatedMultiboard,2,0,5.00)
	call MultiboardSetItemStyleBJ(bj_lastCreatedMultiboard,0,0,true,false)
	set bj_forLoopAIndex=2
	set bj_forLoopAIndexEnd=13
	loop
		exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
		call MultiboardSetItemStyleBJ(bj_lastCreatedMultiboard,1,bj_forLoopAIndex,true,true)
		set bj_forLoopAIndex=bj_forLoopAIndex+1
	endloop
	call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,1,1,"TRIGSTR_6501")
	call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,1,"TRIGSTR_6503")
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,2,80.00,0.00,0.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,3,0.00,0.00,80.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,4,0.00,80,80.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,5,50.00,0.00,50.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,6,80.00,80,0.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,7,80.00,50.00,0.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,8,0.00,80,0.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,9,80.00,60.00,60.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,10,50.00,50.00,50.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,11,60.00,60.00,80.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,12,0.00,40.00,20.00,0)
	call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,13,50.00,30.00,0.00,0)
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,2,"CommandButtons\\BTNGoku.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,3,"CommandButtons\\BTNVegeta.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,4,"CommandButtons\\BTNGohan.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,5,"CommandButtons\\BTNGotenks.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,6,"CommandButtons\\BTNSuper13.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,7,"CommandButtons\\BTNFTrunks.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,8,"CommandButtons\\BTNPiccolo.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,9,"CommandButtons\\BTNSuperBuu.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,10,"CommandButtons\\BTNBabyVegeta.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,11,"CommandButtons\\BTNBroly.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,12,"CommandButtons\\BTNCell3.blp")
	call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,13,"CommandButtons\\BTNCooler.blp")
	set bj_forLoopAIndex=2
	set bj_forLoopAIndexEnd=13
	loop
		exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
		call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,bj_forLoopAIndex,(R2S(udg_reals02[(bj_forLoopAIndex-1)])+"x"))
		set bj_forLoopAIndex=bj_forLoopAIndex+1
	endloop
	call EnableTrigger(udg_trigger614)
	call TriggerExecute(udg_trigger614)
	call DestroyTrigger(GetTriggeringTrigger())
endfunction

function Trig_Update_Leaderboard_Func002Func001001 takes nothing returns boolean
	return(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction

function Trig_Update_Leaderboard_Func002A takes nothing returns nothing
	if(Trig_Update_Leaderboard_Func002Func001001())then
	else
		call SetPlayerName(GetEnumPlayer(),"TRIGSTR_6509")
	endif
endfunction

function Trig_Update_Leaderboard_Actions takes nothing returns nothing
	set udg_force07=GetPlayersByMapControl(MAP_CONTROL_USER)
	call ForForce(udg_force07,function Trig_Update_Leaderboard_Func002A)
	call DestroyForce(udg_force07)
	set bj_forLoopAIndex=2
	set bj_forLoopAIndexEnd=13
	loop
		exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
		call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,1,bj_forLoopAIndex,GetPlayerName(Player(-1+((bj_forLoopAIndex-1)))))
		call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,bj_forLoopAIndex,(R2S(udg_reals02[(bj_forLoopAIndex-1)])+"x"))
		set bj_forLoopAIndex=bj_forLoopAIndex+1
	endloop
	call MultiboardDisplay(bj_lastCreatedMultiboard,true)
endfunction

	set udg_trigger613=CreateTrigger()
	call TriggerRegisterTimerEventSingle(udg_trigger613,1.00)
	call TriggerAddAction(udg_trigger613,function Trig_Create_Leaderboard_Actions)
	set udg_trigger614=CreateTrigger()
	call DisableTrigger(udg_trigger614)
	call TriggerRegisterTimerEventPeriodic(udg_trigger614,3.00)
	call TriggerAddAction(udg_trigger614,function Trig_Update_Leaderboard_Actions)
 

Attachments

  • multi.JPG
    multi.JPG
    26.3 KB · Views: 157
Last edited:
Status
Not open for further replies.
Back
Top