From f9238211070854bf68c4580588fc3142663abc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 29 Jul 2020 00:14:04 -0700 Subject: [PATCH] sneak dialogue enable/disable now effects start and stop sneaking dialogue --- MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua index a07406b..916abb0 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua @@ -75,7 +75,7 @@ local function stopFollowing(onTimer) follower.object.name, tes3.player.object.name, ogPosition, distance, duration) -- send a dialogue to let player know guard doesn't care any more - if onTimer then + if onTimer and config.sneakDialogue then local response = common.guardDialogue(follower.object.name, table.choice(common.dialogues[config.language].stop_following), tes3.mobilePlayer) @@ -123,10 +123,12 @@ local function startFollowing() end local function abortFollow() - local response = common.guardDialogue(follower.object.name, - table.choice(common.dialogues[config.language].stop_sneaking), - tes3.mobilePlayer) - log(response) + if config.sneakDialogue then + local response = common.guardDialogue(follower.object.name, + table.choice(common.dialogues[config.language].stop_sneaking), + tes3.mobilePlayer) + log(response) + end stopFollowing(false) end