Difference between revisions of "GetExperienceForLevel - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Lisselli
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Game Script Returns the required amount of experience for the next level up. (This fun...")
 
imported>Lisselli
m (→‎Syntax: added missing parameter)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Float Function GetPlayerExperience()
Float Function GetExperienceForLevel(int currentLevel)
</source>
</source>
== Return Value ==
== Return Value ==
*Returns the required amount of experience for the current level to level up.
*Returns the required amount of experience for the current level to level up.

Latest revision as of 09:22, 26 October 2017

SKSE Member of: Game Script

Returns the required amount of experience for the next level up. (This function requires SKSE.)

Syntax[edit | edit source]

Float Function GetExperienceForLevel(int currentLevel)

Return Value[edit | edit source]

  • Returns the required amount of experience for the current level to level up.

Examples[edit | edit source]

  • None

Notes[edit | edit source]

  • This function only returns the total experience needed to level up. Use GetPlayerExperience - Game when you want to know the amount of experience gained for the current level.

See Also[edit | edit source]