top_scores should be scores or vice-versa, or am I mistaken? VIA DMGUIDE GETSCORES()
mob/var/scores_found
mob/Login()
..()
spawn()
var/top_scores = world.GetScores(10, "Booty")
scores_found = !isnull(scores)
if(scores)
var/list/params = params2list(scores)
src << "<b>Top Buccaneers:</b>"
for(var/i=1, i<params.len, ++i)
var/player = params[i]
var/loot = params[player]
src << "[i]\th place: [player] with [loot] doubloon\s"
if(params.len && params[1] == key)
src << "Ye be master of the seas! Take thy well-earned hat."
icon_state = "Commodore"
Numbered Steps to Reproduce Problem:
//Check the DM Guide
Code Snippet (if applicable) to Reproduce Problem:
mob/var/scores_found
mob/Login()
..()
spawn()
var/top_scores = world.GetScores(10, "Booty")
scores_found = !isnull(scores)
if(scores)
var/list/params = params2list(scores)
src << "<b>Top Buccaneers:</b>"
for(var/i=1, i<params.len, ++i)
var/player = params[i]
var/loot = params[player]
src << "[i]\th place: [player] with [loot] doubloon\s"
if(params.len && params[1] == key)
src << "Ye be master of the seas! Take thy well-earned hat."
icon_state = "Commodore"
Expected Results:
It to show the proper variable?
Actual Results:
Displays the wrong variable
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
It always occurs.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
I can just ignore it and continue? haha but it'll confuse the newbs