Jump to content

Change Dog meats Name


Zorkaz

Recommended Posts

Add him to a ReferenceAlias that has DisplayName set to a message with the name in the title field, [x] Uses Stored text, [x] Clear name when removed then add and remove from the alias OnEquipped and OnUnequipped.

 

The only wrinkle is if your name is active when the dialog happens that switches from Dog to Dogmeat that will over-ride your applied name, altho that condition can be detected for 100% quality.

Link to comment
Share on other sites

Thank you SKK50. While I do know how to set up an Alias I'm unsure what you mean with "Remove from the alias OnEquipped and OnUnequipped" in terms of coding.

 

 

Like "Alias_DogNameAlias.forceRefTo(Alias_Dogmeat.getReference())"?

Link to comment
Share on other sites

If the armor object is yours or you are ok hacking other assets, attach a CONST script to it which contains;

ReferenceAlias Property Alias_Dogmeat Auto Const Mandatory
ReferenceAlias Property Alias_MyDogName Auto Const Mandatory

Event OnEquipped(Actor akActor)
   Actor TheDog = Alias_Dogmeat.GetActorRef()
   If (TheDog != none) && (akActor == TheDog)
      Alias_MyDogName.ForceRefTo(TheDog)
   EndIf
EndEvent

Event OnUnequipped(Actor akActor)
   Actor TheDog = Alias_Dogmeat.GetActorRef()
   If (TheDog != none) && (akActor == TheDog)
      Alias_MyDogName.Clear()
   EndIf
EndEvent
Link to comment
Share on other sites

So, does it work just like that even after name was obtained from M.Murphy? Silly problem with Dogmeat is his naming alias in dogmeatquest which doesn't have ClearNamesWhenRemoved. Gotta patch the quest first and set the flag, clear the default Dogmeat name alias, only then can change the name freely from another quest alias. That would be a single time requirement though, e.g. patching mod can be moved topmost to become conflictless (in part of dogmeatquest) after freeing the name. Keep in mind, that for best results all related messages should be changed to Alias.CurrentName (e.g. Dogmeat/Dog found something etc.), while originally they are "hardcoded" and can't reflect arbitrary name changes.

Edited by hereami
Link to comment
Share on other sites

If two reference aliases try to force an object name, usually the last one wins.

 

ALTHOUGH it may be a function of quest priority, dunno havent tested that aspect.

 

When it clears the previous winner should reassert.

Link to comment
Share on other sites

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...