Difference between revisions of "GetPlayerExperience - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Lisselli
m (→‎Examples: removed unnecessary variable.)
imported>Lisselli
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.
Return Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience()
Return Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience())
EndFunction
EndFunction
</source>
</source>

Revision as of 09:12, 26 October 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.
	Return Game.GetExperienceForLevel(Game.GetPlayer().GetLevel()) - Game.GetPlayerExperience())
EndFunction

See Also