Jump to content

Adding a perk to the player on game start via Quest Script


Recommended Posts

Hi,

 

I'm trying to add a perk to the player on starting a new game. I know to create a quest, then create a script attached to it, but the Wiki was not helpful on the actual script to add the perk to the player.

 

This was the best I got - https://www.creationkit.com/fallout4/index.php?title=AddPerk_-_Actor

 

Game.GetPlayer().AddPerk(AwesomePerk)

 

with my perk Editor ID replacing AwesomePerk but this failed to compile.

 

I'm probably missing something super obvious, but any help would be appreciated.

Link to comment
Share on other sites

Need help again I'm afraid!

 

This is what I've got so far

 

Scriptname aSO_AddPerkQuestScript extends Quest
Event OnQuestInit()
Game.GetPlayer().AddPerk(aSO_ModFoodHealing)
EndEvent
but then it fails to compile because of "variable aSO_ModFoodHealing is undefined"
I've tried to define it in the properties menu but it didn't work.
Edited by temporalsoup
Link to comment
Share on other sites

Scriptname aSO_AddPerkQuestScript extends Quest



Perk Property aSO_ModFoodHealing Auto



Event OnQuestInit()
Game.GetPlayer().AddPerk(aSO_ModFoodHealing) 

EndEvent

Don't forget to fill out the property afterwards

Link to comment
Share on other sites

  • Recently Browsing   0 members

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