payl0ad Posted September 15, 2019 Share Posted September 15, 2019 I've come across something pretty weird. For a mod I'm working on, I wanted to make crops in existing inhabitated settlements owned by the settlement/workshop so the player can't just go there and pick all their crops without controlling the workshop. Should be easy, right? Just remove the "No Crime" flag on the FLOR-REFRs in settlement cells that already have an owner, add faction to FLOR-REFRs who don't have an owner in the base game, done. Or so I thought. I removed the "No Crime" flag from the crops at Abernathy Farm (they belong to FarmFactionAbernathy). When I arrive there, the Tatos are shown in red when focusing them and I have to steal them. Nice. Just like the loot inside their farm house (which is where I looked at to figure out how this is done). However, you've read the post title. This is where it gets weird. When I walk around the crop field for a few seconds, the Tatos start plopping back to green and I don't have to steal them anymore. This happens on a one-by-one basis, they do not change all at once but by reference. What's really weird is that the items inside the farm house are still the same, I'd still have to steal them. Meaning, the player did not become a member or ally of FarmFactionAbernathy (i.e. I haven't completed Returning the Favor). Furthermore, I of course did these owner/crime flag changes to all inhabitated settlements. I can reproduce the behavior in Warwick Homestead and The Slog, both of which already have owners in Fallout4.esm, with the "No Crime" flag set (which I again simply removed from the REFRs). The programmer half of my brain thinks the REFRs changing one by one (instead of all at once, which would mean the player to FarmFaction relation changed but is disproven by the object inside the house not changing crime state) means that somewhere, some script is looping over an array of these ObjectReferences and changing their owner faction to the PlayerFaction but I haven't got the slightest clue where I would start looking for such a thing. Has anyone else seen this happening or knows enough about the Workshop scripts to be able to tell what the hell is going on here? This is a major roadblock and I'm almost done. :( Link to comment Share on other sites More sharing options...
Recommended Posts