Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Scripts/Source/MantellaConversation.psc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand All @@ -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()
Expand Down Expand Up @@ -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)
Expand Down