
I assume this could be due to their robes in red and purple?
While we're at it, could this top5 be expanded to top7 or even Top10? this would be an enhancement of course, no bug

Is changing the label realy a big deal?
Code: Select all
for each monsterId in killedMonstersByID
{
killsByName{monsterId.name}+=monsterId.kills
}
int i=0
for each monsterName in sortByDescendingValues(%killsByName)
{
if (i++ >= 5) break;
addToOutputString(monsterName, killsByName{monsterName})
}