ModPerkPoints - Game

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Game Script

Modifies the number of perk points available to the player by the specified amount. (This function requires SKSE)

Syntax[edit | edit source]

Function ModPerkPoints(Int PerkPoints) native

Parameters[edit | edit source]

  • PerkPoints : the number of perk points to add or remove

Return Value[edit | edit source]

None

Examples[edit | edit source]

; add 1 Perk Point to the Player
Game.ModPerkPoints(1)

; remove 3 Perk Points from the Player
Game.ModPerkPoints(-3)

; double the current Perk Points number
Game.ModPerkPoints(Game.GetPerkPoints())

Notes[edit | edit source]

Final values can not exceed 255.

See Also[edit | edit source]