This is a great idea. But do you think you could make an option where only guards will react? It seems a bit over enthusiastic for ordinary people to suddenly start attacking me for the "crime" of putting down a bottle of skooma!
Ah, ok. Well in that case, do you think you could add all the potential factions that shouldn't care: Thieves Guilds in Skyrim and Cyrodiil, etc? I'm assuming it's already set up so a zero alarm value doesn't trigger a crime or response?
Some classes and factions are already blacklisted (Smugglers, Necromancers, Thieves Guild, Camonna Tong, Ashlanders and Telvanni), however I do not check the victim's alarm before triggering it, I should probably add that.
Definitely the zero alarm would be useful. I just added in some factions which made sense to me:
local function isSmuggler(actor) if config.smugglerList[actor.id:lower()] then return true end if actor.class.id == "Smuggler" or actor.class.id == "Necromancer" or (actor.faction and (actor.faction.id == "Thieves Guild" or actor.faction.id == "Camonna Tong" or actor.faction.id == "Ashlanders" or actor.faction.id == "Telvanni" or actor.faction.id == "T_Cyr_ThievesGuild" or actor.faction.id == "T_Sky_ThievesGuild" or actor.faction.id == "Twin Lamps" )) then
Yeah I tried some stuff and it seems NPCs report crimes regardless of their alarm value, and since the vast majority of NPCs have an alarm value of 0 I decided against putting that check since then the mod would basically never trigger except in front of guards.
14 comments
local function isSmuggler(actor)
if config.smugglerList[actor.id:lower()] then return true end
if actor.class.id == "Smuggler" or actor.class.id == "Necromancer" or (actor.faction and (actor.faction.id == "Thieves Guild"
or actor.faction.id == "Camonna Tong"
or actor.faction.id == "Ashlanders"
or actor.faction.id == "Telvanni"
or actor.faction.id == "T_Cyr_ThievesGuild"
or actor.faction.id == "T_Sky_ThievesGuild"
or actor.faction.id == "Twin Lamps"
)) then
But, I was thinking. Surely if the code is doing a check on NPC classes to exclude from the logic, it could be reversed to only include guards?