enderalse/source/scripts/qf_bardstart_00149591.psc

50 lines
1.2 KiB
Plaintext
Raw Normal View History

;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
2021-10-05 22:59:59 +00:00
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)
2023-12-08 02:57:30 +00:00
Actor akBard = alias_Bard.GetActorReference()
2021-10-05 22:59:59 +00:00
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
2021-10-05 22:59:59 +00:00
Quest Property BardDialogue Auto
Quest Property BardAudience Auto