enderalse/scripts/source/qf_bardstart_00149591.psc
2021-10-06 00:59:59 +02:00

50 lines
1.2 KiB
Plaintext

;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.GetActorRef()
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