sneak dialogue enable/disable now effects start and stop sneaking dialogue

This commit is contained in:
Lilian Jónsdóttir 2020-07-29 00:14:04 -07:00
parent ef781be4b3
commit f923821107

View file

@ -75,7 +75,7 @@ local function stopFollowing(onTimer)
follower.object.name, tes3.player.object.name, ogPosition, distance, duration) follower.object.name, tes3.player.object.name, ogPosition, distance, duration)
-- send a dialogue to let player know guard doesn't care any more -- 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, local response = common.guardDialogue(follower.object.name,
table.choice(common.dialogues[config.language].stop_following), table.choice(common.dialogues[config.language].stop_following),
tes3.mobilePlayer) tes3.mobilePlayer)
@ -123,10 +123,12 @@ local function startFollowing()
end end
local function abortFollow() local function abortFollow()
local response = common.guardDialogue(follower.object.name, if config.sneakDialogue then
table.choice(common.dialogues[config.language].stop_sneaking), local response = common.guardDialogue(follower.object.name,
tes3.mobilePlayer) table.choice(common.dialogues[config.language].stop_sneaking),
log(response) tes3.mobilePlayer)
log(response)
end
stopFollowing(false) stopFollowing(false)
end end