2021-10-05 22:59:59 +00:00
|
|
|
Scriptname _00E_StopBardDialogueOnLocChange extends ReferenceAlias
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
LocationAlias Property Location_Alias Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Location Property _00E_DunehomeInteriorLocation Auto
|
|
|
|
Location Property _00E_FlusshaimTaverneLocation Auto
|
|
|
|
Location Property _00E_SuntempleQuarters Auto
|
|
|
|
Location Property _00E_UEEntr_FalseDog_Location Auto
|
|
|
|
Location Property BauernkuesteRoterOchseLocation Auto
|
|
|
|
Location Property CapitalCityTheFatLeoranLocation Auto
|
|
|
|
Location Property SchneefelstaverneInteriorLocation Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Quest Property BardAudience Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
|
|
|
|
If Location_Alias ; Try the new way first
|
|
|
|
Location bardLoc = Location_Alias.GetLocation()
|
|
|
|
If bardLoc
|
|
|
|
If akNewLoc != bardLoc
|
|
|
|
TerminateParentQuest()
|
|
|
|
EndIf
|
|
|
|
Return
|
|
|
|
EndIf
|
|
|
|
EndIf
|
2021-10-05 22:22:24 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
If akNewLoc != akOldLoc ; Old way, mostly for version compatibility
|
|
|
|
If akOldLoc == _00E_FlusshaimTaverneLocation
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == _00E_UEEntr_FalseDog_Location
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == _00E_DunehomeInteriorLocation
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == CapitalCityTheFatLeoranLocation
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == BauernkuesteRoterOchseLocation
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == _00E_SuntempleQuarters
|
|
|
|
TerminateParentQuest()
|
|
|
|
ElseIf akOldLoc == SchneefelstaverneInteriorLocation
|
|
|
|
TerminateParentQuest()
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
Function TerminateParentQuest()
|
|
|
|
GetOwningQuest().Stop()
|
|
|
|
BardAudience.Stop()
|
|
|
|
EndFunction
|