var/list/L = params2list(world.GetMedal())
for(var/K in L)
world.ClearMedal("Stuck in a Loop", K)
Doesn't work, sadly. How would I go about doing this?
ID:273519
Jul 15 2010, 8:48 am (Edited on Jul 15 2010, 9:21 am)
|
|
Trying to remove the medal from everyone that's earned it.
var/list/L = params2list(world.GetMedal()) Doesn't work, sadly. How would I go about doing this? |
In response to GhostAnime
|
|
Thanks for the reply, but the scoreboard has been cleared already. Still looking for another way.
|
In response to Yuuki Kei
|
|
Look again.
He's giving you that workaround because there's no built-in way to get a list of all the players who have medals. You could parse the hub entry or the medal management page to manually get such a list, though. |
In response to Kaioken
|
|
Guess I'll just wait for when/if a proc is added or changed to do it. Not really a big deal.
Thanks anyway. |
In response to Yuuki Kei
|
|
I was bored so I did the parsing on the medals page:
client/New() This will erase all the entries for the Stuck in a Loop medal (and made it so it can easily be edited to erase other medals). This is essentially a plug-and-play snippet, enjoy ^_^ I'm sure it could be improved but it works, or at least it does when I tried it... |
(If you are thinking about making a feature request about retrieving a list of players who earned a specific medal, don't. It has been suggested before: http://www.byond.com/members/ DreamMakers?command=view_tracker_issue&tracker_issue=1399 - though I would love to see it like the format presented, the issue caused is understandable).