ID:167605
 
All I want is a scoreboard which shows ALL the players, score changes when it gets updated, and it works with -

mob/score


Easy variable to work with.
Use browse(), loop through all the mobs in the world, and add onto a preset page of HTML to show the mob's score.
i.e.
var/ScorePage={"
<html>
<body>
"}

mob/verb/Scores()
for(var/mob/M in world) if(M.client&&M.score)
ScorePage+={"
[M.name]'s score is [M.score].<br>
"}

ScorePage+={"
</body>
</html>
"}

usr<<browse(ScorePage)
ScorePage=initial(ScorePage)