WIAddItem03, Making guards etc hostile towards NPC

Post » Sat Oct 12, 2013 10:06 am

So, I've just started playing Skyrim again after a while and tried playing a bit more serious this time, with mods like requiem, frostfall, basic needs etc. and because of this I level rather slowly and almost everything is able to kill me rather easily. So normally when I get attacked from something I run to the next guard / friendly npc and let them help me. If you think about it logically, there is no shame in letting a guard help you fend off some wolfes, bears, bandits or whatever. BUT here comes the problem. I comitted some minor crimes (stealing stuff from homes, but without getting caught) and now I got those 3 Hired Thugs after me trying to teach me a lesson (killing me with 2-3 hits) and the worst part is no one will help me. Normally if the player is attacked by some random creature or hostlie npc the guards etc come to you aid. But not with these fellas. I found mods to disable them, or turn them into bunnies or wahtever, but the most reasonable thing would be to not only make them hostile to the player, but to guards etc as well, after they say their line and attack you.

This concenrs the Quest:

  • WIAddItem03

the NPCs:

  • WIThug
  • WIThugNordM
  • WIThugCommonerM

which are members of the faction

  • WIThugfaction

and get added to the following faction during QuestStage 200

  • WIPlayerEnemyFaction

Now, what I want is for the guards and any other friendly NPCs to help the player defeat them once they turn hostlie towards the Player, like they would to with any kind of bandit or hostile creature.

As I see it you'd have to change the Quest/Script in stage 200 to not only add them to the "WIPlayerEnemyFaction" but also to another faction so the guards and any other friendly NPCs also turn hostile towards them. But I have no idea how to do that. I read up on it a bit online where some people said to just add them to the "DraugrFaction" because every NPC hates them and would attack them, but adding "Thug1.addToFaction(kmyquest.WIs.DraugrFaction)" or "Thug1.addToFaction(DraugrFaction)" only produces a compilation error along the line "DraugrFaction is not a property on script wifunctionsscript or one of its parents".

Could someone with a bit more understanding of Quests / Scripting tell me how to accomplish this? It really doesn't seem that hard but I can't get it to work.

User avatar
Channing
 
Posts: 3393
Joined: Thu Nov 30, 2006 4:05 pm

Return to V - Skyrim