An experience point (often abbreviated to exp or XP) is a unit of measurement used in tabletop role-playing games (RPGs) and role-playing video games to quantify a player character's progression through the game. Experience points are generally awarded for the completion of quests, overcoming obstacles and opponents, and for successful role-playing.
Quests are the only way to be awarded XP