GetXPForLevel - Game
Jump to navigation
Jump to search
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.
Syntax[edit | edit source]
int Function GetXPForLevel(int auiLevel) native global
Parameters[edit | edit source]
- auiLevel: The level to get the required XP for.
Return Value[edit | edit source]
The amount of XP needed to go from level 0 to the specified level.
Examples[edit | edit source]
; 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")