From dd5f778fe93eb2d83d112255bdb667edb6e9c656 Mon Sep 17 00:00:00 2001 From: stevechk Date: Sun, 20 Jul 2025 11:05:36 +0100 Subject: [PATCH] fix: stop bards playing songs when starting a conversation --- Scripts/Source/MantellaConversation.psc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Scripts/Source/MantellaConversation.psc b/Scripts/Source/MantellaConversation.psc index de5f981..f794b6f 100644 --- a/Scripts/Source/MantellaConversation.psc +++ b/Scripts/Source/MantellaConversation.psc @@ -16,6 +16,7 @@ Actor Property PlayerRef Auto VoiceType Property MantellaVoice00 Auto MantellaInterface property EventInterface Auto ReferenceAlias Property Narrator Auto +BardSongsScript Property Bardsongs Auto ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Globals ; @@ -42,6 +43,10 @@ bool microphoneEnabledLastKnownStatus = false event OnInit() RegisterForConversationEvents() + Bardsongs = Quest.GetQuest("BardSongs") as BardSongsScript + if Bardsongs == None + debug.trace("error: BardSongs script not found") + endIf EndEvent event OnPlayerLoadGame() @@ -81,7 +86,11 @@ function StartConversation(Actor[] actorsToStartConversationWith) Debug.Notification("Not enough characters to start a conversation.") return endIf - + + if Bardsongs != None + Bardsongs.StopAllSongs() + endIf + SKSE_HTTP.setString(handle, mConsts.KEY_REQUESTTYPE, mConsts.KEY_REQUESTTYPE_STARTCONVERSATION) SKSE_HTTP.setString(handle, mConsts.KEY_STARTCONVERSATION_WORLDID, PlayerRef.GetDisplayName() + repository.worldID) BuildContext(true)