Jump to content

Factions and ownership???


Recommended Posts

I'm a bit lost with Factions and ownership.

 

The idea is that I have an NPC that 'owns stuff' until I recruit her as companion, then her stuff becomes 'my stuff' as well. I took at a look at how this was setup for Piper. There's a faction DmndPublickOwnerFaction and I copied this setup. I checked her recruitment quest and found the player was added to this faction. So I think I copied this whole setup right, yet.. well read the issues below in more detail:

 

- I have a custom NPC that can be recruited. In her cellar, there are a lot of items.

- I've created a faction called '_ivy_ownership_faction' and have assigned ownership to all of these items by selecting that faction.

- I set the faction to be able to be 'owner'

(This works, the items turn red when I go into her cellar).

 

image.png.0d337e593ea2fa9640ceca2cad0284aa.png

 

I have two problems:

1) Ivy does not attack the player when they steal her stuff.

2) Her stuff does not become 'my stuff' once I recruited her.

 

- I have added my NPC to this faction at rank 0.

- When she is recruited I call Game.GetPlayer().AddToFaction(_ivy_ownership_faction)

 

But after that the items stay red.

There is no error in the papyrus log, so the call must be functioning.

 

She does not attack me when I steal her items, this is also an issue I need to solve.

So I added a crime faction to her that tracks crime. But when I checked the 'Use Info'  for the DmndPublickOwnerFaction I saw it was only being called in her recruitment quest, it's not some sub-child of another crime faction.

 

So I created a custom crimefaction for Ivy:

 

image.png.9a38c733850816d99297de35996dd591.png

 

Ivy's factions:

 

image.png.fca35c66b043d22f705f3d8cfca81b27.png

 

So at this point I'm a bit lost... Any tips for both problems will be greatly appreciated!

Link to comment

1st problem solved. I had the 'AddToFaction' after a loop call, so it never ran. Items now belong to the player after recruitment.

I still can't get her to attack the player though when they steal.. must have something to do with the crime factions.. or perhaps the follower script vars..

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use