sneak dialogue enable/disable now effects start and stop sneaking dialogue
This commit is contained in:
parent
ef781be4b3
commit
f923821107
1 changed files with 7 additions and 5 deletions
|
@ -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()
|
||||||
|
if config.sneakDialogue then
|
||||||
local response = common.guardDialogue(follower.object.name,
|
local response = common.guardDialogue(follower.object.name,
|
||||||
table.choice(common.dialogues[config.language].stop_sneaking),
|
table.choice(common.dialogues[config.language].stop_sneaking),
|
||||||
tes3.mobilePlayer)
|
tes3.mobilePlayer)
|
||||||
log(response)
|
log(response)
|
||||||
|
end
|
||||||
stopFollowing(false)
|
stopFollowing(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue