world << world.GetMedal( "Arbitrary Medal", usr ) // returns 0
world << world.SetMedal( "Arbitrary Medal", usr ) // returns 0
Problem description:
• Procedure descriptions:
world.GetMedal() desc:
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.
world.SetMedal() desc:
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.
• Test results:
GetMedal returns 0 indicating the medal has NOT been awarded.
SetMedal returns 0 indicating the medal HAS been awarded.
• Further details:
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?
Look up hub_password in the dm reference.