Make an npc equip armor or clothes via dialogue.

Post » Tue Nov 20, 2012 1:43 pm

Anyone remember Neeshka and Vilja in Oblivion? They both had a feature that told them what to wear via dialogue. For example: If you told Neeshka to go casual she will remove her armor, and equip clothes. If you told Vilja let's go swimming she will wear a bathing suit.

Does anyone know how to do this in Skyrim.
User avatar
Romy Welsch
 
Posts: 3329
Joined: Wed Apr 25, 2007 10:36 pm

Post » Tue Nov 20, 2012 3:15 am

http://www.creationkit.com/SetOutfit_-_Actor
should do it, it changes the default outfit the npc wear, also support for sleeping clothes but not sure if this work.
Note if you also give them gear in inventory that might override this if better.
User avatar
Daniel Holgate
 
Posts: 3538
Joined: Tue May 29, 2007 1:02 am

Post » Tue Nov 20, 2012 11:11 am

Sorry if this is a stupid question. But do I add this as a dialogue script fragment?
User avatar
Svenja Hedrich
 
Posts: 3496
Joined: Mon Apr 23, 2007 3:18 pm

Post » Tue Nov 20, 2012 9:21 am

Yes.

akSpeaker.EquipItem(Clothes)

However many "clothes" you need, each an "armor" property.

Caveat: unless your actor is a teammate, the next time they're loaded, they'll revert to their default outfit.

You could try setting their outfit:

akSpeaker.SetOutfit(Outfit)

where "outfit" is an outfit property.

If you want to make an actor function like a manequinn, have a look at these:

http://skyrim.nexusmods.com/mods/25429

http://skyrim.nexusmods.com/mods/23798 [only main file]

They're my work; they both deal with making an NPC wear what they're given. Simply extract the script and script sources to your scripts folder and have a look.
User avatar
Naughty not Nice
 
Posts: 3527
Joined: Sat Nov 04, 2006 6:14 am

Post » Tue Nov 20, 2012 11:44 am

Thanks for the reply, Prince. But when I put
akspeaker.setoutfit(ArmorSteel)

I get an error message saying ArmorSteel is undefined.
User avatar
Marine Arrègle
 
Posts: 3423
Joined: Sat Mar 24, 2007 5:19 am

Post » Tue Nov 20, 2012 3:49 pm

You have to create a property first. You can do that by going to the "properties" button and choosing "add property".

You'll want to select the "armor" property type and call the property whatever you like and then fill it (tip: calling it the editor ID of an object of that type -- or that editor ID with a "p" in front of it -- will fill it automatically).

You cannot create properties on quest or dialogue fragments at first. You have to compile the script. So do a junk command that needs no properties like "akSpeaker.Kill()" or something. Once that finishes compiling, you can add properties.

Judging by your other topics, it sounds like you're trying to make an NPC wear items given through a gift menu. Why not look at the Hearthfire scripts or my Change Spouse Outfits (where I do exactly that).


...You are the first person to call me "Prince." Most just call me "Shroob."
User avatar
Heather Stewart
 
Posts: 3525
Joined: Thu Aug 10, 2006 11:04 pm


Return to V - Skyrim