Difference between revisions of "GetPlayerExperience - Game"
Jump to navigation
Jump to search
imported>Lisselli |
imported>Lisselli m (→Examples: I realized the functions required for this will only be called once in the function body, and have thus removed the now unneeded 4 variables and condense it down to just one.) |
||
Line 17: | Line 17: | ||
Float Function GetExperienceRemaining() | Float Function GetExperienceRemaining() | ||
; returns the amount of experience remaining for the current level. | ; returns the amount of experience remaining for the current level. | ||
RemainingEXP = Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience() | |||
return RemainingEXP | return RemainingEXP | ||
EndFunction | EndFunction |
Revision as of 06:17, 26 August 2017
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.
RemainingEXP = Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience()
return RemainingEXP
EndFunction