4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.2 KiB

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 2
Scriptname QF_BardStart_00149591 Extends Quest Hidden
;BEGIN ALIAS PROPERTY Location
;ALIAS PROPERTY TYPE LocationAlias
LocationAlias Property Alias_Location Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY Bard
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bard Auto
;END ALIAS PROPERTY
;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
Scene lastSongScene = (BardDialogue as _00E_BardDialogueFunctions).LastSongScene1
BardAudience.Stop()
; Terminate BardDialogue if it's running
If BardDialogue.IsRunning()
BardDialogue.Stop()
Utility.WaitMenuMode(0.1)
EndIf
Int iTimeoutCounter = 0
While BardDialogue.IsStopped() == False && iTimeoutCounter < 60
Utility.WaitMenuMode(0.1)
iTimeoutCounter += 1
EndWhile
; Start BardDialogue again (with the new bard)
Actor akBard = alias_Bard.GetActorReference()
If akBard
BardDialogue.Start()
(BardDialogue as _00E_BardDialogueFunctions).Setup(akBard, lastSongScene)
EndIf
Stop()
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Quest Property BardDialogue Auto
Quest Property BardAudience Auto