• 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.

Leader board help : /

Status
Not open for further replies.
Level 5
Joined
Jul 11, 2004
Messages
183
RaD- said:
i dont understand how to make a leaderboard for my hunter and farmer map... no clue how to even start =/ plz help

10 peoples viewed your thread but no one helpin,, ok here the triggers for leaderboard,, this triggers you dont need variable its very simple and work perpectly if ya edit same as this,,,cause i know ya dont understand about variables so just use this trigger.

create a new trigger and name it Leader Board and put this in

Events
Time - Elapsed game time is 0.00 seconds
Conditions (leave condition alone and go to action)
Actions
Leaderboard - Create a leaderboard for (All players) titled (u can name the title to watever you want)
Wait 1.00 seconds
For each (Integer B) from 1 to 12, do (Leaderboard - Add (Player((Integer B))) to (Last created leaderboard) with label (Name of (Player((Integer B)))) and value ((Player((Integer B))) Units Killed))
Leaderboard - Show (Last created leaderboard)

ok ya done the 1st part, let me explain this part.. below the wait 1.00 seconds,, for each (integer B) from 1 to 12 <<< i dont how many players are in your map but if there 10 so change it to from 1 to 10 if there 8 then change it to from 1 to 8..

ok the second part is update the leader board get peoples kills and get their score.. make a new trigger name it to Update Leader Board and put this in

Event
Time - Every 2.00 seconds of game time
Conditions (leave condition alone also)
Actions
For each (Integer B) from 1 to 12, do (Leaderboard - Change the value for (Player((Integer B))) in (Last created leaderboard) to ((Player((Integer B))) Units Killed))

ok your done, same as the first part.. for each (integer B) from 1 to 12,,, change it same as the 1st part,,, see very simple without variebles ..
well forget about the past bro,,watever i say watever you say. just forget it,, and help each other,, we can be friends you know :) up to you.
 
Level 4
Joined
Jul 28, 2004
Messages
43
I have an easier mode. First u must made the leader board and then u mast make another trigger to update it:



Events
Map initialization
Conditions
Acciones
Wait 1.00 seconds
Tabla de líderes - Create a leaderboard for (All players controlled by a Usuario player) titled 'Name'



NOw, u have 2 posibilitys: u only want to have player kills and u wants player and players groups kills. That example has group kills (neutral)




Tabla de líderes - Add Neutral pasivo to (Last created leaderboard) with label (<Cadena vacía> + Name of group) and value kills[0]
Tabla de líderes - Add Jugador 1 (rojo) to (Last created leaderboard) with label ( + (Name of Jugador 1 (rojo))) and value kills[0]
Tabla de líderes - Add Jugador 2 (azul) to (Last created leaderboard) with label ( + (Name of Jugador 2 (azul))) and value kills[0]
Tabla de líderes - Add Jugador 3 (teja) to (Last created leaderboard) with label ( + (Name of Jugador 3 (teja))) and value kills[0]
Tabla de líderes - Add Jugador 4 (morado) to (Last created leaderboard) with label ( + (Name of Jugador 4 (morado))) and value kills[0]
Tabla de líderes - Add Neutral hostil to (Last created leaderboard) with label (<Cadena vacía> + Name of another group) and value kills[0]
Tabla de líderes - Add Jugador 5 (amarillo) to (Last created leaderboard) with label ( + (Name of Jugador 5 (amarillo))) and value kills[0]
Tabla de líderes - Add Jugador 6 (naranja) to (Last created leaderboard) with label ( + (Name of Jugador 6 (naranja))) and value kills[0]
Tabla de líderes - Add Jugador 7 (verde) to (Last created leaderboard) with label ( + (Name of Jugador 7 (verde))) and value kills[0]
Tabla de líderes - Add Jugador 8 (rosa) to (Last created leaderboard) with label ( + (Name of Jugador 8 (rosa))) and value kills[0]
Tabla de líderes - Mostrar (Last created leaderboard)
Set herokills = kills[0]



Kills=integer(o) variable HeroKills=integer(o) variable

Now u have the leaderboard, and u must to update it:


Puntuacion CT
Acontecimientos
Ur choose
Condiciones
Ur choose

Acciones
Set kills[(Player number of (Owner of (Event)))] = (kills[(Player number of (Owner of (Event)))] + 1)
Tabla de líderes - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to kills[(Player number of (Event)
 
Status
Not open for further replies.
Top