This mod is an improvement of Protective Guards. Now the guards don't systematically protect the player; it depends of the guard/attacker/defensor faction, and possibly of attacker/defensor rank, and possibly if attacker/defensor is a guard or not. Furthermore, guards can protect NPCs too (example: if a NPC attacks another NPC), with the same rules
Other user's assetsSome assets in this file belong to other authors. You will need to seek permission from these authors before you can use their assets
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
Credit to kuyondo for Protective Guards, for his generosity to accept a Protective Guards addition, for his code skills and for his help.
Donation Points system
This mod is not opted-in to receive Donation Points
Changelogs
Version 1.1.1
Little code improvement (perf)
Version 1.1
I had forgotten tests for player crime and werewolf NPC/player.
And player.lua corrections (no more "return" who end the loop...).
This mod is an addition to Protective Guards. You must install Protective Guards first.
No more guard fighting his colleague to protect a thief PC from a rival faction... And NPCs have rights to protection too!...
These are the cases where guard is not going to protect the defensor:
Spoiler:
Show
- guard, attacker & defensor are in the same "faction family"(*), and (attacker rank > defensor rank, or attacker rank = defensor rank and attacker is guard and defensor isn't guard) => guard will attack defensor
- guard, attacker & defensor are in the same "faction family", and attacker rank = defensor rank and attacker is guard and defensor is guard => guard won't attack
- guard & attacker are in the same "faction family", not the defensor => guard will attack defensor
- guard is in a "faction family" different than attacker & defensor, and attacker is guard and defensor isn't guard => guard will attack defensor
- guard is in a "faction family" different than attacker & defensor, and attacker is guard and defensor is guard => guard won't attack
- guard has no faction, and attacker is guard and defensor isn't guard => guard will attack defensor
- guard has no faction, and attacker is guard and defensor is guard => guard won't attack
(*) A faction family is a group of factions that are considered as the same faction (from the guards point of view, in this mod). By default there is for me 2 factions families: the Imperial (imperial legion, census and excise, imperial knights, royal guard, east empire company) and the Temple (temple, redoran). If you want to change or suppress that, follow my instructions in my player.lua file. The "faction family" of a faction who isn't a part of such a group, is simply this faction.
To install this mod, make sure that Protective Guards is installed. Then copy the 3 files of my mod in place of these 3 original Protective Guards files (backup them if you want). That's all.
Note: the future release of Protective Guards (so a version > 0.18) won't be compatible with this mod. At this time i will release a new version that will be compatible with the future Protective Guards.
Credit to kuyondo for Protective Guards, for his generosity to accept a Protective Guards addition, for his code skills and for his help.