Format
ClearMedal(medal, player)
Returns
1 if the medal was rescinded successfully, 0 or null otherwise.
Args
medal
: name of the medal being rescindedplayer
: a mob, client, key, or ckey
Removes a medal from a player. The proc will return 1 if it is successful, or 0 if the medal was not already awarded. If the world already knows this medal was not earned, the hub will not be contacted.
This proc will return null if there was no way to reach the hub. Use isnull() to check for a null value. Contacting the hub may take a few moments, so it is a good idea to use spawn() to avoid holding up the rest of the game.
mob/NPC
Die(mob/killer) // assume Die() is a proc all mobs have
spawn()
if(ismob(killer) && killer.key)
world.ClearMedal("Pacifist", killer)
Danger
You can specify a different hub path and hub_password by adding these as extra arguments, but this is not recommended for security reasons. If you use this feature, it should only be on games that cannot be downloaded by the public.