GetCalculatedSkillPoints

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.17.

Description

If the player is not in the Level-Up Menu, returns the amount of Skill points they would get from their next level-up. Otherwise, returns the max amount of Skill points the player can allot from their current level-up.

If specified and set to a non-zero value, the levelOverride optional argument can be used to replace the player's current level in the equation with a theoretical level. Note that if this change is made before the adjustment for not being in the Level-Up menu (which adds +1 level).

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

Does NOT account for the limit that occurs when the player is close to maxing out every Skill (they receive less Skill points to prevent softlocking).

This function can be used either in a script, or as a Condition.

Syntax

[help]
(skillPoints:int) GetCalculatedSkillPoints levelOverride:int 

Or:

(skillPoints:int) GetCalculatedSkillPointsEarnedPerLevel levelOverride:int

Example

 if MenuMode 1027  ; level-up menu is active
      GetCalculatedSkillPoints
 endif

Returns the total Skill points that the player has received from their current level-up. May be an overestimate; it does not account for the reduction of Skill points when the player is close to maxing out every Skill.

 if eval !(MenuMode 1027)  ; level-up menu is NOT active
      GetCalculatedSkillPoints
 endif

Returns the total Skill points that the player would receive from their next level up.

See Also