Reset follower NPC disposition/faction on player death #29182
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Bugfixes "Reset follower NPC disposition/faction on player death"
Purpose of change
Fixes #28113
Describe the solution
When player dies, all NPC followers have their disposition and mission for talk topics, and faction and attitude reset to a somewhat blank slate ( like a dynamic NPC - but with no chance of hostility, incase new player in same world spawns in same refugee centre as previous )
Follower list will be cleared, and if you meet the same NPC in the same world with a new player, they will need to be recruited again.
To facilitate this, I have made two small chagnes to the mechanics of NPCs - one - their disposition is set when starting dialogue, ( normally NPCS have disposition set to player when spawned - these NPCS arent being spawned and the player has changed. )
Also , I have added NPCs you recruit to the players faction, and removed when player dies, this will have beneficial knock-on effects to further work on factions in general.
Describe alternatives you've considered
N/A
Additional context
N/A