Jump to content

Need help with weakness to iron wpn's perk


Recommended Posts

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

I found this script on Reddit for adding a perk at the start of a game:

 

 

ScriptName MyPlayerAlias Extends ReferenceAlias

Actor Player

Event OnInit()
Player = Game.GetPlayer() ; anyone other than player would get the alias actor reference
SetupPerks(true)
EndEvent

Function SetupPerks(bool abActivate)
If(abActivate && GetState() != "ACTIVESTATE")
GoToState("ACTIVESTATE")
Else
GoToState("")
EndIf
EndFunction


State ACTIVESTATE
Event OnBeginState()
; add perks to player
EndEvent

Event OnEndState()
; remove perks from player
EndEvent
EndState

 

 

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 initialized
Game.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 by Murielkai
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...