I'm using a script inspired by the one managing the stormcloaks/imperial prisoners in the vanilla game.
My two prisoners use the same script in their own Reference Alias. Everything works just fine, when i activate any of the two prisoners, both are released as intended.
My only issue is that the script keeps running on the prisoner I didn't activate, so the message box pops up again when I try to speak to him.
Is there a simple way to deactivate all instances of this script once it has been used one time ?
Thanks !
Scriptname QBET01FreeTwins extends ReferenceAliasMessage Property QBet01FreeSlavesMessageBox AutoReferenceAlias Property RaKhirr Auto ReferenceAlias Property RaMhirr Auto Outfit Property RakhirrOutfit Auto Outfit Property RaMhirrOutfit Auto bool bound = Trueint iSetFree = 0int iDoNothing = 1Event OnActivate(ObjectReference akActionRef) if Bound == true Actor ActorRef = GetActorReference() int result = QBet01FreeSlavesMessageBox.show() if result == iDoNothing ;debug.Notification("DO NOTHING") elseif result == iSetFree ;debug.Notification("SET FREE") RaKhirr.GetActorRef().SetOutfit (RakhirrOutfit) RaMhirr.GetActorRef().SetOutfit (RaMhirrOutfit) GetOwningQuest().setstage(70) RaKhirr.GetActorRef().EvaluatePackage() RaMhirr.GetActorRef().EvaluatePackage() bound = False EndIf EndIfEndEvent