vegeta020
New Member
- Reaction score
- 0
Here is the thing... I am relatively new in this whole thing with map editing, but i am learning this for a pretty long time, and everything i learned i learned by myself... But yesterday i found myself in dead end, because i didn't knew how to make leaderboard work... i went on d3 scene and found the answer on my problem... But i dont understand one thing:
I've created a leaderboard and variable Player_Kills because i want to keep track of kills... i've made it array variable, because it was the instruction...
Then i followed the instructions... i've made the new trigger named "Trigger Tally Score" and done these steps:
Events
Unit - A unit Dies
Conditions
((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Set Player_Kills[(Player number of (Owner of (Killing unit)))] = (Player_Kills[(Player number of (Owner of (Killing unit)))] + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Now the problem is in that i cannot set bolded part as variable Player_Kills... Editor just says that there is no variable that fits the requests... Really dont understand, and i need help, because leaderboard gives sense to my mod...
I've created a leaderboard and variable Player_Kills because i want to keep track of kills... i've made it array variable, because it was the instruction...
Then i followed the instructions... i've made the new trigger named "Trigger Tally Score" and done these steps:
Events
Unit - A unit Dies
Conditions
((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Set Player_Kills[(Player number of (Owner of (Killing unit)))] = (Player_Kills[(Player number of (Owner of (Killing unit)))] + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Now the problem is in that i cannot set bolded part as variable Player_Kills... Editor just says that there is no variable that fits the requests... Really dont understand, and i need help, because leaderboard gives sense to my mod...