How to get an NPC to unequip Armor during a package

Post » Tue Nov 20, 2012 1:19 pm

1. Yes.

2. Give him a defined outfit, see what happens.

What type of package is it?

3. Yes, try to figure it out.

We're getting there!

1) I gave him a Default Outfit of the aKoiWoodcutterOutfit. This made things worse. Now instead of going to the hotsprings and putting his work clothes on when he sits down, he's already wearing them. So he's sitting in the water with his work clothing on o.0 He never takes them off like he's supposed to.

The packages, both of them (the work and bathe) are SitTarget. The work target is the woodchopping block, and the bathe target is a SitCrossLegged marker in the hotsprings.

2) Okay, I don't know what's causing it but...sometimes they stop walking back to their jobs. I managed to "fix" it by walking into another cell (my cabin for instance) and when I walked back outside they were walking to work. Weird but...whatever, as long as it works!


Edit!:

Could the issue be that, the outfit chosen for his bathing outfit (aKoiBathingOutfit) is empty? I figured having an empty outfit would mean he'd wear...nothing. Is this not the case?
User avatar
Liii BLATES
 
Posts: 3423
Joined: Tue Aug 22, 2006 10:41 am

Post » Tue Nov 20, 2012 5:13 am

SitTarget likely hits the end state as soon as he sits down, a la a travel package. Can you make it a sandbox with a limited radius/multiple idle markers instead?

Have you configured the work package correctly? Look at Faendal's AI.

You could do multiple packages, like so:
  • Work
  • Go to location near hot spring and "strip" (change outfit)
  • Sit in spring
  • Get out of spring to location and "dress" (change outfit)
  • Repeat
Do GetDistance checks from the marker he'd be traveling to.
User avatar
RaeAnne
 
Posts: 3427
Joined: Sat Jun 24, 2006 6:40 pm

Post » Tue Nov 20, 2012 12:14 pm

SitTarget likely hits the end state as soon as he sits down, a la a travel package. Can you make it a sandbox with a limited radius/multiple idle markers instead?

Have you configured the work package correctly? Look at Faendal's AI.

You could do multiple packages, like so:
  • Work
  • Go to location near hot spring and "strip" (change outfit)
  • Sit in spring
  • Get out of spring to location and "dress" (change outfit)
  • Repeat
Do GetDistance checks from the marker he'd be traveling to.


OMG! OMG! I got it! :happy: IT WAS BECAUSE THE BATHING OUTFIT WAS EMPTY! So I was wrong...having an empty outfit does not mean he wears nothing. It means he doesn't bother wearing the outfit at all.
So now all I need to do is make him wear a necklace to work, then the outfit for the bathing will just be the necklace. That way it takes off all his armor but leaves the necklace on so that the outfit isn't empty.

Unless there's a way to make him wear nothing without making an outfit. Like maybe akActor.SetOutfit(NONE)?
User avatar
Jeffrey Lawson
 
Posts: 3485
Joined: Tue Oct 16, 2007 5:36 pm

Post » Tue Nov 20, 2012 11:52 am

SetOutfit(None) doesn't work; believe me, I've tried.

Hmm. My work with null outfits indicated that they would properly "eat" the old outfit, but whatever works for you.
User avatar
Emzy Baby!
 
Posts: 3416
Joined: Wed Oct 18, 2006 5:02 pm

Post » Tue Nov 20, 2012 9:21 am

SetOutfit(None) doesn't work; believe me, I've tried.

Hmm. My work with null outfits indicated that they would properly "eat" the old outfit, but whatever works for you.

Thank you SO much for sticking with me through this! This was NOT easy XD but now I know how to do it! Thank you so much. You saved me from having an island full of nudists instead of clothed people!...not that there's anything wrong with that, but it does seem odd to chop wood wearing nothing but a loincloth ^_^
User avatar
Ashley Clifft
 
Posts: 3468
Joined: Thu Jul 26, 2007 5:56 am

Post » Tue Nov 20, 2012 9:53 am

You're quite welcome.
User avatar
Joey Avelar
 
Posts: 3370
Joined: Sat Aug 11, 2007 11:11 am

Post » Tue Nov 20, 2012 10:18 am

SetOutfit(None) doesn't work; believe me, I've tried.

Hmm. My work with null outfits indicated that they would properly "eat" the old outfit, but whatever works for you.

*SIGH!* DAMNIT! NOW whenever it hits time for them to wander to the hot springs the NPC equips his bathing outfit on the walk TO the hotsprings, then when he arrives at the hotsprings, after he sits down he puts his work clothes back on. I didn't touch his information at all since I got it working before. The most I did was change the bathing outfit. When I tested it I used a pair of shoes. Now I changed it to a necklace. What'd I do? Do I need to compile things again?
User avatar
Andy durkan
 
Posts: 3459
Joined: Fri Aug 03, 2007 3:05 pm

Post » Tue Nov 20, 2012 12:12 pm

*shrugs*


You could do multiple packages, like so:
  • Work
  • Go to location near hot spring and "strip" (change outfit)
  • Sit in spring
  • Get out of spring to location and "dress" (change outfit)
  • Repeat
Do GetDistance checks from the marker he'd be traveling to.


You could try that.
User avatar
Code Affinity
 
Posts: 3325
Joined: Wed Jun 13, 2007 11:11 am

Post » Tue Nov 20, 2012 5:32 pm

*shrugs*



You could try that.

Bleh. I just did... *sighs*

I got him to switch clothing alright, for the Bathe package he simply has akActor.SetOutfit(aKoiBathingOutfit) on Begin, Change, AND End. The work as the woodcutter outfit on Begin, Change, and End. It works fine...but now I have an entirely new problem!

NOW, even as a Sandbox package, once the time hits 7:00PM he stops whacking wood and just...stands there. I tried entering and exiting an interior cell to jumpstart him into doing it, but that didn't work!

It's like everytime something goes right, two more things go wrong -.- IT NEVER ENDS! *sighs angrily*
User avatar
AnDres MeZa
 
Posts: 3349
Joined: Thu Aug 16, 2007 1:39 pm

Post » Tue Nov 20, 2012 6:15 am

OKAY! THAT'S IT! If it screws up any more I will just give up!

I got it to "work". I guess.

I set the packages to sandbox packages, not SitTarget. I have the Bathe package set to Begin - BathingOutfit, End - WoodcutterOutfit, Change - WoodcutterOutfit. The work package has none of that.

So far, two days in a row I watched him walk to his work station, chop wood, then return at night to the hot springs. Kind of neat side effect of the sandbox package is he not sits at random spots around the hot springs and not just the 1

Ultimately, it works.
It seems to even do something trivial the Creation Kit you have to do the impossible and crap out a golden goose egg.

I HATE SCRIPTING! *throws his arms up* With that, I'm going to bed -.-
User avatar
Milagros Osorio
 
Posts: 3426
Joined: Fri Aug 25, 2006 4:33 pm

Previous

Return to V - Skyrim