Origin of achievements
Solution 1:
Achievements: A History
The first form of achievements that appeared, in the way you describe them was on the Atari 2600, 30 years ago. For some of the Activision games on the system, there would have challenges listed in them. Most often, these were simply "score x amount of points," but there were also challenges such as "finish a level in six seconds", or "survive 5 days". These challenges were listed in the manual of the game.
An extract from the manual of the Activision game Enduro Racing.
The player would then complete these challengers, take a picture of the TV screen for proof, and put it to Activision in the post. Upon completing the often difficult challenges and sending the proof to Activision, they would send you a decorative fabric patch which confirmed your achievement in the game[1].
This patch is given after scoring 10,000 points in Chopper Commandos, a difficult feat.
The earliest Activision game that included this decorative patch was the racing game Dragster, which you earned by finishing in less than 6 seconds. It was released in 1980[2], which gives us a definite beginning date for the early forms of achievements as described in the question.
These patches were made to show off to friends. You could sew them onto clothing or other items, so that you could tell the world how good you were at the game. These early stages of achievements were entirely offline. The actual game didn't save anything.
We now move forward 10 years to another game called E-Motion for the Amiga. It had a collection of "secret bonuses" you could aquire by doing various challenges[3]. These secret bonuses closely resemble the achievements of today. Some examples of the secret bonuses in the game were:
- Completing a bonus level with the last digit of the timer as a "3"
- Complete any level without rotating to the right
- Complete level one without ever using the screen wrap
- etc.
A screenshot of E-Motion.
This was closer to modern day achievements than the patches were. For one thing, they were stored on the game itself, rather than just offline. It still lacked, however, the ability to share the achievements online - an important part of today's achievement systems. Where did the sharing aspect of achievements come from?
We move forward another 6 years to 1996 - where a website called MSN Gaming Zone would launch. It was designed to be used alongside instant messenging. Due to the inherently social nature of instant messenging, MSN decided to allow one to easily share gaming results to whoever they were chatting with. The games also included "badges", which were earned for doing specific things in the games[4]. This started the social aspect of achievements - you were encouraged to share badges with your friends online.
Finally, we reach 2005, and the introduction of the Xbox 360. This tied together all of the parts of the previous iterations of achievements into a cohesive whole. Part of this was adding in the "GamerScore" which created a positive feedback system for learning achievements[5]. The achievement system in the 360 was completely integrated within the game. This was so effective that today the Xbox 360 is widely considered to have popularised achievement systems in pretty much anything - the PlayStation Network, for instance, introduced the similiar Trophy system in 2008[6].
[1]: Atari Age 2600 Patch Gallery
[2]: GameFAQS data for the game Dragster
[3]: Cheats website for Amiga games
[4]: About Badges MSN Website, which is apparently still operating
[5]: An article about the effect of achievements in gaming practices
[6]: A comment on this answer by Denilson Sá
Also, I highly recommend reading the fifth link there. It is actually really interesting.