world << world.GetMedal( "Arbitrary Medal", usr ) // returns 0
Checks to see if a medal has been awarded to the player in question. If the medal has been awarded, the return value is 1. If not, 0.
Awards a medal to a player. The proc will return 1 if it is successful, or 0 if the medal was already awarded.
In the code I attempt to find if a particular medal has already been awarded.
GetMedal returns 0 indicating the medal has NOT been awarded.
SetMedal returns 0 indicating the medal HAS been awarded.
I attempted to award myself with a medal in game. Looking at the hub no medal was actually awarded. In the game I ran a couple procs to check if I had actually been awarded, and ended up with a contradiction. GetMedal and SetMedal report opposite results, so what may be causing this error?