GetLevelUpMenuPoints

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.17.

Description

Returns the amount of Skill/Perk points (specified by checkPerks) for the active Level-Up Menu. If checkAssigned is true (non-zero), will check for the amount of Skills/Perks that were assigned by the player. Otherwise, will return the max amount of Skills/Perks that can be assigned.

Returns -1 if the Perk Menu is not opened. If this is called in an OnMenuClose event, the menu is also considered to be unopened, so it returns -1.

Accounts for the Adjust Gained Skill Points Perk Entry Point. Also accounts for lStewieAl's Tweaks's bModifySkillPointsEarned and iPerksPerLevel.

Syntax

[help]
(points:int) GetLevelUpMenuPoints checkPerks:bool{Default:0} checkAssigned:bool{Default:0}

Example

GetLevelUpMenuPoints

Returns the max amount of Skills that the player can assign in this Level-Up menu. Equivalent to `GetLevelUpMenuPoints 0 0`, or even GetCalculatedSkillPoints in this scenario, assuming the player has not already maxed out their Skills.

GetLevelUpMenuPoints 0 1

Returns the amount of Skills that the player has assigned.

See Also