Many games that are created these days come with their own achievement system that rewards players/users for accomplishing certain tasks. The badges system here on stackoverflow
If your game architecture is Event-driven, then you can implement achievements system using finite-state machines.