Murielkai Posted May 2, 2019 Share Posted May 2, 2019 This is what I have so far: I add the perk to the "Actor" form on the race presets. I am trying to give the equivalent of the werewolf weakness to silver but I'm not sure if its not adding the perk or if the perk doesn't work because I have it set up wrong. Do I need to add perks through a quest or something? Link to comment Share on other sites More sharing options...
Murielkai Posted May 3, 2019 Author Share Posted May 3, 2019 (edited) I found this script on Reddit for adding a perk at the start of a game: ScriptName MyPlayerAlias Extends ReferenceAliasActor PlayerEvent OnInit() Player = Game.GetPlayer() ; anyone other than player would get the alias actor reference SetupPerks(true)EndEventFunction SetupPerks(bool abActivate) If(abActivate && GetState() != "ACTIVESTATE") GoToState("ACTIVESTATE") Else GoToState("") EndIfEndFunctionState ACTIVESTATE Event OnBeginState() ; add perks to player EndEvent Event OnEndState() ; remove perks from player EndEventEndState Is there any way to only have a perk added if you play a certain race? I know s*** about scripting so if anyone can point me in the right direction that would be great. Here is another script someone linked that can add a perk: Event OnInit() ; This event will run once, when the script is initializedGame.GetPlayer().AddPerk(YourPerk) ; Adds your perk.Game.GetPlayer().AddPerk(YourSecondPerk) ; Adds a second perk.Game.GetPlayer().AddPerk(AndSoOn) ; And so on. Add more lines as needed.Debug.Notification("Perks successfully added to player.") ; Just so you can be sure it's kicked in when you load the game, you'll get a message at the top left.EndEvent Edited May 3, 2019 by Murielkai Link to comment Share on other sites More sharing options...
Recommended Posts