Star Wars Knights of the Old Republic II: The Sith Lords/Experience

Main player characters gain experience from the following:
 * Advancing quests
 * Killing enemies
 * Using skills

Level up
Gaining experience results in gaining levels. Maximum experience needed for next level = 1000 * current level:

Total experience = next level * current level * 500

Although characters can gain maximum level 50, even an extremely thorough player who maximises experience gain is unlikely to gain more than level 30 by the end of the game. Higher levels can only be gained by exploiting various glitches in the game.