Scriptname __LALLFeriaUntieScript extends ReferenceAlias  

Actor Property PlayerRef Auto
Actor Property Feria Auto
Message Property FeriaUntieMSG Auto
Quest Property CurrentQuest Auto
Int Property SetStageTo Auto
Int Property StageToCheck Auto
__FeriaKidnapQuestScript Property KidnapQuest Auto


Event OnActivate(ObjectReference akActionRef)
if akActionRef == PlayerRef && CurrentQuest.GetStage() == StageToCheck
FeriaUntie()
endif

EndEvent

Function FeriaUntie(int aibutton = 3)
aiButton = FeriaUntieMSG.Show()
if aiButton == 0
CurrentQuest.SetStage(SetStageTo)
Feria.AllowPCDialogue(true)
KidnapQuest.SetFeriaBondage(false)
else

endif


EndFunction