GetPlayerExperience - Game

From the CreationKit Wiki
Revision as of 05:56, 5 May 2018 by imported>Rasikko (→‎Examples: syntax and spacing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Game Script

Returns the current amount of experience for the current level. (This function requires SKSE.)

Syntax

Float Function GetPlayerExperience()

Return Value

  • Returns the current amount of experience for the current level.

Examples

Float Function GetExperienceRemaining()
    ; returns the amount of experience remaining for the current level.
    Return Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience()
EndFunction

See Also