GetXPForLevel - Game
From Creation Kit
Member of: Game Script
Returns the total amount of XP required to obtain the specified level. This is not the amount of xp between two levels.
int Function GetXPForLevel(int auiLevel) native global
- auiLevel: The level to get the required XP for.
The amount of XP needed to go from level 0 to the specified level.
; Print out some XP stats Debug.Trace("Level 2 requires " + Game.GetXPForLevel(2) + " XP in total") Debug.Trace("To go from level 2 to level 4 requires " + (Game.GetXPForLevel(4) - Game.GetXPForLevel(2)) + " XP")