temporalsoup Posted November 1, 2021 Share Posted November 1, 2021 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 More sharing options...
Zorkaz Posted November 1, 2021 Share Posted November 1, 2021 Event OnQuestInit() Game.GetPlayer().AddPerk(AwesomePerk) EndEvent Should suffice Link to comment Share on other sites More sharing options...
temporalsoup Posted November 1, 2021 Author Share Posted November 1, 2021 Event OnQuestInit() Game.GetPlayer().AddPerk(AwesomePerk) EndEventThank you so much! Link to comment Share on other sites More sharing options...
temporalsoup Posted November 1, 2021 Author Share Posted November 1, 2021 (edited) 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 November 1, 2021 by temporalsoup Link to comment Share on other sites More sharing options...
Zorkaz Posted November 1, 2021 Share Posted November 1, 2021 Scriptname aSO_AddPerkQuestScript extends Quest Perk Property aSO_ModFoodHealing Auto Event OnQuestInit() Game.GetPlayer().AddPerk(aSO_ModFoodHealing) EndEventDon't forget to fill out the property afterwards Link to comment Share on other sites More sharing options...
temporalsoup Posted November 2, 2021 Author Share Posted November 2, 2021 Thank you again! Really helpful :) Link to comment Share on other sites More sharing options...
Recommended Posts