Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

Rcoll

Uploaded by

rcoll

Virus scan

Safe to use

About this mod

Settlement attacks will no longer be left to chance. Gain the ability to guarantee that your settlement will always win with a high enough defence stat.

Requirements
Permissions and credits
Translations
  • Spanish
  • Korean
  • German
  • French
Changelogs
Donations
Requires F4SE, Workshop Framework, MCM

A rebuilt version of my older mod Better Settlement Defence. I've built more upon the basic functionality that it offered and also rewritten most of the code.

Description

For anyone who doesn't know, the way Bethesda has programmed offscreen settlement attacks goes like this: 

1. Your settlement gets attacked.
2. If you don't go to help after a certain amount of time, the outcome is automatically calculated.
3. The settlement's Food + Water values are used as the enemy Attack value, while its Defence + Population values are used as its total Defence value. Both values are capped at 100.
4. A random number between 1 & 100 is added on to Attack and Defence (different number for each) to make the Attack Roll and Defence Roll. The greater of the two determines whether the settlement wins or loses. Also, the Attack Roll and Defence Roll are capped at 150 and 200, respectively. This gives the Defence Roll a greater chance of being higher than the Attack Roll.

What all this means basically, is that you can never truly ensure that your settlements will win. Because the initial Attack/Defence values can't go higher than 100 in the calculation, and the Attack/Defence Rolls add 1-100 to each, there will always be a chance that it will lose against an attack.
This is, to put it lightly, a load of BS when you consider some of the fortresses that players have constructed.

Enter Better Settlement Defence, which manipulates globals added by Kinggath's Workshop Framework to remove that random aspect altogether, provided your settlement's total Defence is higher than its Food + Water (Enemy Attack Strength) stat. As well as that, a few other things have been added too...

Features

- Defence being higher than Enemy Attack Strength will always result in a win. If Defence is lower then the outcome will be calculated similarly to vanilla - except that now the maximum Attack Roll = attack + (attack - defense). The lower the difference between attack and defense, the more likely the settlement is to win.
- Each resource 'Weight' can be adjusted in the MCM to customise how much you want Food, Water, Defence and Population to affect the calculation.
- Food & Water resources stored in the workshop can also be factored into the equation (Optional).
- Upper Limit for Attack Strength can be adjusted. (Default: 999)
- Customise what kind of information is displayed in the attack notification/message.
- Balance It Yourself: Set Attack Strength multipliers for each kind of enemy that may attack your settlements.
- No DLC required: Any DLC changes are automatically detected on load and the mod updates to accomodate the new types of settlement attacks.
- High Compatibility - No base script edits means nothing is overwritten and so has no chance of conflicting with other mods e.g. UFO4P.

Installation

If you are running the old BS Defence on your save (pre v3.0) then you will have to first uninstall it, load the save, and then save the game without it installed. I apologise for this but it is necessary since I had to make changes that require it to be properly shut down and started up again. This will be the only time you have to do this when updating.
This is also the reason for me creating a new mod page, as I don't want users to simply update the mod through the Vortex mod manager without realising they first have to do this.

After you've done that it should be fine to install this version from the mod manager.


Credit Where Credit Is Due

Kinggath and the rest of the team behind the Workshop Framework. This has opened up so many possibilities for settlement mods.

Niston, for the idea and proof-of-concept of stored Food & Water items being considered in the settlement attack calculation, and also the idea of an upper limit for enemy Attack Strength.

Bethesda. I know their games do have their quirks, but I honestly appreciate how much of an accessible platform they make them for modding.