Scriptname CurrentPrisonerScript extends ReferenceAlias  

Event OnInit()
RegisterforUpdate(5)
endevent

Event OnUpdate()
If Brynjolf.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Brynjolf.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Brynjolf.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Brynjolf.GetRef()) 
Endif
If Cynric_Endell.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Cynric_Endell.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Cynric_Endell.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Cynric_Endell.GetRef())
Endif
If Delvin_Mallory.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Delvin_Mallory.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Delvin_Mallory.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Delvin_Mallory.GetRef()) 
Endif
If Dirge.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Dirge.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Dirge.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Dirge.GetRef())
Endif
If Maul.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Maul.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Maul.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Maul.GetRef())
Endif
If Maven.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Maven.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Maven.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Maven.GetRef())
Endif
If Mercer_Frey.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Mercer_Frey.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Mercer_Frey.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Mercer_Frey.GetRef()) 
Endif
If Niruin.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Niruin.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Niruin.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Niruin.GetRef())
Endif
If Rune.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Rune.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Rune.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Rune.GetRef())
Endif
If Sapphire.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Sapphire.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Sapphire.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Sapphire.GetRef())
Endif
If Thrynn.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Thrynn.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Thrynn.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Thrynn.GetRef())
Endif
If Tonilia.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Tonilia.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Tonilia.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Tonilia.GetRef())
Endif
If Vekel_the_Man.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Vekel_the_Man.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Vekel_the_Man.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Vekel_the_Man.GetRef()) 
Endif
If Vex.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Vex.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Vex.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Vex.GetRef())
Endif
If Vipir_the_Fleet.GetActorReference().IsInFaction(CurrentFollowerFaction)== 1 && Vipir_the_Fleet.GetActorReference().IsEquipped(ClothesPrisonerTunic)==1 && Vipir_the_Fleet.GetActorReference().IsEquipped(ClothesPrisonerShoes)
 CurrentPrisoner.ForceRefto(Vipir_the_Fleet.GetRef())
Endif
endevent

ReferenceAlias Property Brynjolf Auto
ReferenceAlias Property Cynric_Endell Auto
ReferenceAlias Property Delvin_Mallory Auto
ReferenceAlias Property Dirge Auto
ReferenceAlias Property Maul Auto
ReferenceAlias Property Maven Auto
ReferenceAlias Property Mercer_Frey Auto
ReferenceAlias Property Niruin Auto
ReferenceAlias Property Rune Auto
ReferenceAlias Property Sapphire Auto
ReferenceAlias Property Thrynn Auto
ReferenceAlias Property Tonilia Auto
ReferenceAlias Property Vekel_the_Man Auto
ReferenceAlias Property Vex Auto
ReferenceAlias Property Vipir_the_Fleet Auto
ReferenceAlias Property CurrentPrisoner Auto
Armor Property ClothesPrisonerTunic Auto
Armor Property ClothesPrisonerShoes Auto
Faction Property CurrentFollowerFaction Auto