Can someone post the vanilla DialogueFollowerScript?

Post » Thu Jun 21, 2012 2:55 pm

I changed mine in one mod, not thinking, and now it is changed for all my other mods. Totally breaking quite a few of them.

If anyone could post the vanilla script or tell me how to get it back up I'd appreciate it.
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Thu Jun 21, 2012 12:32 pm

I changed mine in one mod, not thinking, and now it is changed for all my other mods. Totally breaking quite a few of them.

If anyone could post the vanilla script or tell me how to get it back up I'd appreciate it.

Other than redownlaoding the CK, not sure how you'd get it. Here's mine, I've never changed it:

ScriptName DialogueFollowerScript extends Quest ConditionalGlobalVariable Property pPlayerFollowerCount AutoGlobalVariable Property pPlayerAnimalCount AutoReferenceAlias Property pFollowerAlias AutoReferenceAlias property pAnimalAlias AutoFaction Property pDismissedFollower AutoFaction Property pCurrentHireling AutoMessage Property  FollowerDismissMessage AutoMessage Property AnimalDismissMessage AutoMessage Property  FollowerDismissMessageWedding AutoMessage Property  FollowerDismissMessageCompanions AutoMessage Property  FollowerDismissMessageCompanionsMale AutoMessage Property  FollowerDismissMessageCompanionsFemale AutoMessage Property  FollowerDismissMessageWait AutoSetHirelingRehire Property HirelingRehireScript Auto;Property to tell follower to say dismissal lineInt Property iFollowerDismiss Auto ConditionalFunction SetFollower(ObjectReference FollowerRef)actor FollowerActor = FollowerRef as ActorFollowerActor.RemoveFromFaction(pDismissedFollower)If FollowerActor.GetRelationshipRank(Game.GetPlayer()) < 3 && FollowerActor.GetRelationshipRank(Game.GetPlayer()) >= 0  FollowerActor.SetRelationshipRank(Game.GetPlayer(), 3)EndIfFollowerActor.SetPlayerTeammate();FollowerActor.SetAV("Morality", 0)pFollowerAlias.ForceRefTo(FollowerActor)pPlayerFollowerCount.SetValue(1)EndFunctionFunction SetAnimal(ObjectReference AnimalRef)actor AnimalActor= AnimalRef as Actor;don't allow lockpickingAnimalActor.SetAV("Lockpicking", 0)AnimalActor.SetRelationshipRank(Game.GetPlayer(), 3)AnimalActor.SetPlayerTeammate(abCanDoFavor = false)pAnimalAlias.ForceRefTo(AnimalActor);AnimalActor.AllowPCDialogue(True)pPlayerAnimalCount.SetValue(1)EndFunctionFunction FollowerWait()actor FollowerActor = pFollowerAlias.GetActorRef() as ActorFollowerActor.SetAv("WaitingForPlayer", 1);SetObjectiveDisplayed(10, abforce = true);follower will wait 3 dayspFollowerAlias.RegisterForUpdateGameTime(72)EndFunctionFunction AnimalWait()actor AnimalActor = pAnimalAlias.GetActorRef() as ActorAnimalActor.SetAv("WaitingForPlayer", 1);SetObjectiveDisplayed(20, abforce = true);follower will wait 3 dayspAnimalAlias.RegisterForUpdateGameTime(72)EndFunctionFunction FollowerFollow()actor FollowerActor = pFollowerAlias.GetActorRef() as ActorFollowerActor.SetAv("WaitingForPlayer", 0)SetObjectiveDisplayed(10, abdisplayed = false)EndFunctionFunction AnimalFollow()actor AnimalActor = pAnimalAlias.GetActorRef() as ActorAnimalActor.SetAv("WaitingForPlayer", 0)SetObjectiveDisplayed(20, abdisplayed = false)EndFunctionFunction DismissFollower(Int iMessage = 0, Int iSayLine = 1)If pFollowerAlias && pFollowerAlias.GetActorRef().IsDead() == False  If iMessage == 0   FollowerDismissMessage.Show()  ElseIf iMessage == 1   FollowerDismissMessageWedding.Show()  ElseIf iMessage == 2   FollowerDismissMessageCompanions.Show()  ElseIf iMessage == 3   FollowerDismissMessageCompanionsMale.Show()  ElseIf iMessage == 4   FollowerDismissMessageCompanionsFemale.Show()  ElseIf iMessage == 5   FollowerDismissMessageWait.Show()  Else   ;failsafe   FollowerDismissMessage.Show()  EndIf  actor DismissedFollowerActor = pFollowerAlias.GetActorRef() as Actor  DismissedFollowerActor.StopCombatAlarm()  DismissedFollowerActor.AddToFaction(pDismissedFollower)  DismissedFollowerActor.SetPlayerTeammate(false)  DismissedFollowerActor.RemoveFromFaction(pCurrentHireling)  DismissedFollowerActor.SetAV("WaitingForPlayer", 0)    ;hireling rehire function  HirelingRehireScript.DismissHireling(DismissedFollowerActor.GetActorBase())  If iSayLine == 1   iFollowerDismiss = 1   DismissedFollowerActor.EvaluatePackage()   ;Wait for follower to say line   Utility.Wait(2)  EndIf  pFollowerAlias.Clear()  iFollowerDismiss = 0  ;don't set count to 0 if Companions have replaced follower  If iMessage == 2   ;do nothing  Else   pPlayerFollowerCount.SetValue(0)  EndIfEndIfEndFunctionFunction DismissAnimal()If pAnimalAlias && pAnimalAlias.GetActorRef().IsDead() == False  actor DismissedAnimalActor = pAnimalAlias.GetActorRef() as Actor  DismissedAnimalActor.SetActorValue("Variable04", 0)  ;DismissedAnimalActor.AllowPCDialogue(False)  pPlayerAnimalCount.SetValue(0)  pAnimalAlias.Clear()  AnimalDismissMessage.Show()EndIfEndFunction
User avatar
Cash n Class
 
Posts: 3430
Joined: Wed Jun 28, 2006 10:01 am

Post » Thu Jun 21, 2012 10:22 am

TY bro.
User avatar
Matt Gammond
 
Posts: 3410
Joined: Mon Jul 02, 2007 2:38 pm


Return to V - Skyrim