SetPerkFlag
From GECK
A function added by the JIP NVSE Plugin.
Description
Sets/un-sets the specified flag (determined by flagID) for the specified Perk.
Syntax
(isFlagSet:0/1) SetPerkFlag perk:ref flagID:int flagSet:0/1
Perk Flag IDs
0 Is Trait; 1 Is Playable; 2 Is Hidden
Example
SetPerkFlag BloodyMess 2 0