Aller au contenu

Photo

Question regarding .utc file data


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Imp of the Perverse

Imp of the Perverse
  • Members
  • 1 662 messages
I've been trying to figure out a way to make Wynne's facial appearance change (via a different headmorph file) once she acquires the  Vessel of the Spirit ability. I know I'll need to do some tricky cutscene editing if I want to show the transformation during the hurlock omega cutscene, but as far a general gameplay goes, I see two possible ways of doing it.

When Wynne is at Ostagar, she has en entirely different .utc file than when she is your companion. It's easy enough to override one .utc or the other to give her two different facial appearances in those two cases. But if I wanted to accomplish the same change during the Transformation cutscene, I would have to add another .utc, which I don't think I could do without causing serious problems with Wynne as a companion (loss of attributes, equipped items, etc.)

The other way would be to write a script that changes the .mor filename specified by her .utc. I came across a function in the toolset function list -

setlocalstring (object object, string variablename, string value)

I'm guessing I could use it to change the .mor filename stored in Wynne's genfl object HeadMorph variable from one filename to another. But would it be changing it for one particular instance of Wynne (if it even works), or would it permanently change the specified .mor for all other instances of Wynne, like new games?

I guess I'm asking if an oWynne object is an object based on the original .utc template, with a different object for each savegame, or the utc file itself. I'm guessing the former, because you can do things like change inventory and attributes, but I wanted to know if anybody had any experience with this before I broke my game testing it out.

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
It's the former, approximately. SetLocalString is used for storing a string variable for later retrieval - it doesn't do anything like what you are thinking it does.