ModPerkPoints - Game

From Creation Kit
Jump to: navigation, 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

Function ModPerkPoints(Int PerkPoints) native

Parameters

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

Return Value

None

Examples

; 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

Final values can not exceed 255.

See Also