Jump to content

Adding Player to Faction via Quest + Script


TheGreenLion

Recommended Posts

Having some trouble at the moment with adding the player to a faction at the end of a quest. I've been following the CK tutorial and Millerboy's YouTube tutorial. He gets to a part in his sixth installment of making a quest where he adds an NPC relationship rank so that only after the quest they will follow the player. What I thought I could do is modify it a bit to add the player to a faction thus setting the player relationship to the whole group to ally and make all of them able to be followers that way. Hit some snags though.

 

I've got a script fragment stuck to the last stage of the quest where the player gets an item removed and adds a gold reward. I set up another property for it as Faction and filled the property with the faction I want to add the player to with a rank of 1 (2 being the top rank, going to try and make another quest to make the player the leader rank). The script fragment goes like so:

SetObjectiveCompleted(30)



Alias_Gunnhilde.GetReference().AddItem(Alias_Greatsword.GetReference())



Game.GetPlayer().AddItem(Gold001, 2000)



Game.GetPlayer().AddFac(SkyhammerBarbarians, 1)

Which I assumed would work just fine, but when compiling I get this:

 

 

Starting 1 compile threads for 1 files...
Compiling "QF_AATGLSkyhammerHoldQuest_03097B1E"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_AATGLSkyhammerHoldQuest_03097B1E.psc(29,17): AddFac is not a function or does not exist
No output generated for QF_AATGLSkyhammerHoldQuest_03097B1E, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on QF_AATGLSkyhammerHoldQuest_03097B1E

 

Apparently I'm missing something here, should I not have the property as Faction? And more puzzling to me, why does it seem to think that the .addfac command doesn't exist? :huh:

 

Any help would be appreciated, thank you for your time! :smile:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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