How can I tie home ownership to a quest?

Post » Sun Nov 27, 2016 6:12 am

I made a player home inside of the Azura's Star. I'm trying to only make the home available to players who have completed the quest "The Black Star". How can I do this?


Thank you.

User avatar
Chloe Mayo
 
Posts: 3404
Joined: Wed Jun 21, 2006 11:59 pm

Post » Sun Nov 27, 2016 7:05 am

that's kind of a open question, there are alot steps i would take, like adding a key to the player's inventory at some point during the azura star quest, like the last time you talk to an npc, and put it in through the dialogue fragment.



you'd want to check out other house mods or how player houses are handled in vanilla; but you can set the ownership of a cell to the player in the ck. if you needed to you could use


http://www.creationkit.com/index.php?title=SetActorOwner_-_ObjectReference



and maybe set everything on cell entry the first time through a script if you didn't already do it in the ck. not sure how that would matter though, you can just set the door to not be used by npc ai so they never go into it.

User avatar
Daniel Lozano
 
Posts: 3452
Joined: Fri Aug 24, 2007 7:42 am

Post » Sun Nov 27, 2016 9:34 am


Ok... I'm really familiar with how quests work in the CK. How would I add a key to inventory when the quest is complete?

User avatar
Steven Nicholson
 
Posts: 3468
Joined: Mon Jun 18, 2007 1:24 pm

Post » Sun Nov 27, 2016 3:58 am


Game.GetPlayer().additem(key, 1)

User avatar
Damian Parsons
 
Posts: 3375
Joined: Wed Nov 07, 2007 6:48 am

Post » Sat Nov 26, 2016 5:42 pm

OK. Thanks. Where would I use this script specifically?

User avatar
Tracey Duncan
 
Posts: 3299
Joined: Wed Apr 18, 2007 9:32 am

Post » Sat Nov 26, 2016 10:22 pm

The easiest way to do it would be to add it as a papyrus fragment on a Quest Stage i.e. if Stage 100 completes the quest put it in the Papyrus Fragment box there

User avatar
FABIAN RUIZ
 
Posts: 3495
Joined: Mon Oct 15, 2007 11:13 am


Return to V - Skyrim