REQ: Ability to change an NPC's outfit via menu

Post » Thu Jun 21, 2012 5:53 pm

I've tooled around in CK and can do some stuff, but very basic. I started trying to add the ability to change Lydia's outfit via dialogue menu options. Seems like it would be simple enough and I did start working on it but I've never worked with papyrus fragments and I'm not sure there is a way around it here, but regardless, I was wondering if anyone could create an esp file that would essentially just need the user to plugin his own user created outfits (via CK) and assign which NPC's would actually offer the dialogue?

So you'd just create the dialog chain and add the scripting to have the NPC actually change clothes depending on what option the player selected. For instance my dialogue chain had started off kinda like this..

-I want you to change what you are wearing.
--I was thinking I might need to change. Do you have an outfit in mind?
-How about your Field Mage outfit?
-How about your Sovngarde armor outfit?
--Yes! I think that is a great outfit, thank you.

Anyway, I think it's simple for someone who knows what they are doing.. thanks.
User avatar
Soku Nyorah
 
Posts: 3413
Joined: Tue Oct 17, 2006 1:25 pm

Post » Thu Jun 21, 2012 1:25 pm

this would be very simple to do. you could just add this to the papyrus fragment at the end of the spoken dialogue choice:

akSpeaker.SetOutfit(CustomOutfit)


declare CustomOutfit as an Outfit Property and point it to the outfit you created.



however, there is a bit of a catch (theres always a catch)

if a user uninstalls your mod, the follower will be forever naked whenever they load the save game. if you plan on having this outfit feature for specific NPC(s), you can use an uninstall script that the user must execute before they uninstall your mod to re-outfit their original clothes

if you plan on having this dialogue for any follower including custom made ones by 3rd party mods, that will get much more complicated and there is no easy way around it
User avatar
hannaH
 
Posts: 3513
Joined: Tue Aug 15, 2006 4:50 am

Post » Thu Jun 21, 2012 4:18 pm

akSpeaker.. that is where I was stuck..

I was really just going to put this together for myself, but I thank you for your help. I kept trying self.setoutfit....
User avatar
YO MAma
 
Posts: 3321
Joined: Thu Dec 21, 2006 8:24 am

Post » Thu Jun 21, 2012 11:04 pm

How do you get the dialogue to work so that it works like..

-Let's change your outfit
-Put on X outfit
-Put on Y outfit
-Put on Z outfit

Every time I try to setup the dialogue branch, there is a weird delay like it's giving time for a sound file to play.. I just want the menu to come up bam bam bam. No sound files.
User avatar
Chris Ellis
 
Posts: 3447
Joined: Thu Jul 26, 2007 10:00 am

Post » Thu Jun 21, 2012 8:06 pm

Never mind, I have it working the way I wanted it to.. thanks.
User avatar
Kanaoka
 
Posts: 3416
Joined: Fri Jun 16, 2006 2:24 pm


Return to V - Skyrim