Jump to content

Need help with batch file to add npc to player / MM faction


lazloarcadia

Recommended Posts

So I run FO4 as the Minutemen general, desperately trying to rebuild enough of the world to be habitable. That said I've written several batch files to add equipment to various NPC's I encounter along the way. I would like to add an additional line to these batch files however which allow me to assign the NPC to my Minutemen faction, so once they are equiped they will refer to me as "General" and other MM npc dialog, etc.

I'd also be interested if there were a way to add them (via console command) as a settler.

Edited by lazloarcadia
Link to comment
Share on other sites

So far here is what I've come up with:

 

AddToFaction 00068043 1
along with my existing batch file which outfits them with some modern weapons, and a set of armor from Militarized Minutemen. That combination + assigning them as settlement guards and provisioners (or companions) should pretty much hit the sweet spot I'm looking for.
Link to comment
Share on other sites

  • 1 year later...

Circling back around to this. I've never found the batch commands to add the NPC to the MM / Player faction I have however found a more robust command to allow pretty much any NPC to be converted to a settler. This is particularly helpful if using mods that add random NPC's to the world that you want to recruit. Also very helpful if you use console commands to spawn in a bunch of NPC's, then use the following commands to convert them to settlers, and lastly go into build mode and assign them to the settlement you want them at.

 

;make settler
Addtofaction 1c21c 1
Addkeyword workshopallowcommand
Addkeyword workshopallowmove
addkeyword workshopallowcaravan
setpv bcommandable 1
setpv ballowmove 1

setpv ballowcaravan 1

Link to comment
Share on other sites

;make settler

Addtofaction 1c21c 1
Addkeyword workshopallowcommand
Addkeyword workshopallowmove
addkeyword workshopallowcaravan
setpv bcommandable 1
setpv ballowmove 1

setpv ballowcaravan 1

 

The WorkshopNPCScript needs to be attached to the NPC too. Otherwise, the setpv (SetPapryusVariable) and AddKeyword commands wouldn't be useful. And not every NPC can be turned to a Settler.

Edited by LarannKiar
Link to comment
Share on other sites

  • Recently Browsing   0 members

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