F4llfield Posted February 5, 2023 Share Posted February 5, 2023 (edited) Hi, I would like to restrain a specific NPC to a small part of a settlement. I'm not sure if it's possible and if so, what would the best way to do it. ( an extra sandbox only assign to that NPC ? ) Any help would be appreciated. added: In other words, I would like for a specific settler to be restricted to a specific zone in a settlement. Edited February 6, 2023 by F4ll0uta Link to comment Share on other sites More sharing options...
hereami Posted February 6, 2023 Share Posted February 6, 2023 (edited) As a basic guidance, look at DefaultMasterPackage and Workshop_xyz packages stack. Should possibly add him to WorkshopNoPackages faction and specify one of DMP_Sandbox_XXXX (or maybe else) links of choice by any suitable means - quest alias, script etc.. Make sure, that he has DefaultMasterPackage on him, although all of npc should have it normally, i guess. This way he benefits from basic Workshop services and still can perform individualistic thing. Still DMP is an all-round monster, and it's better to create a tailored package for own Actor and place it directly onto npc above DMP and condition to HasLinkedRef(WorkshopLinkHome) or alike. Then, for example, you can provide an exclusive buildable object or detailed and dynamic search rules to inform the Actor about exact area inside a settlement without a need of extra support, e.g. assignment of a link and such. Actually, can be as simple as SandboxAtFoundLocation template, where Location is WorkshopLInkHome and TargetSelector is any object of choice. Edited February 6, 2023 by hereami Link to comment Share on other sites More sharing options...
F4llfield Posted February 6, 2023 Author Share Posted February 6, 2023 Thanks for your reply. I'm not at a level where I get everything you said but the if I understand correctly the last sentence: 1. I assign the package SandboxAtFoundLocation to the npc (in my case Codsworth)2. I assign the Location parameter of the SandboxAtFoundLocation to WorkshopLInkHome 3. I assign the TargetSelector parameter of the SandboxAtFoundLocation to an object at the center of the desired zone (in my case player's home).4. I adjust the desired value of the radius parameter to match my selected zone. (default is 512) is that correct ? Link to comment Share on other sites More sharing options...
hereami Posted February 7, 2023 Share Posted February 7, 2023 (edited) Like that. Loc would be Near LinkedReference, yes. But SandboxAtFoundLocation is a template and shouldn't be used directly. Might look here for start then Category:Packages - Creation Kit When anchor is preset, it's more reasonable to use Sandbox template.- Create a new package and choose Sandbox as Package Template. Location - Near Reference of choice.- Set package Conditions to GetStage(MQ102) >=50 (or similar, to make sure it doesn't interfere with his quest in any way).- Place the package on Codsworth above DefaultStayAtEditorLocation.- Set him Faction WorkshopNoPackages.Is he a Settler though?This should do, i think. Editing Cods record isn't best idea, but is most simple to start with. Alternative method is a dedicated dummy quest with Codsworth (or any other person) alias, same package and faction. Then quest Priority should be lower than WorkshopParent (41), unless you don't care about cooperation with it. Can adjust behaviour by turning quest on/off. Also quest allows to establish linked refs without scripting and edits, if necessary. Edited February 7, 2023 by hereami Link to comment Share on other sites More sharing options...
F4llfield Posted February 7, 2023 Author Share Posted February 7, 2023 Thousand thanks for your reply and good info. Very good starting point for me. Link to comment Share on other sites More sharing options...
Recommended Posts