Furniture - Peristent or not?

Post » Fri May 27, 2011 11:26 pm

HI. This is a question that has occurred to me as I begin to populate my city. Naturally my houses have furniture etc, and in some cases, most notably in a Tavern etc, there are quite a few tables and chairs.

If I want an NPC to sit down at a table in a tavern, is it better to make the chair persistent, and point the NPC at it, or is it better to add an XMarker, point the NPC at that and set the target to any object->furniture?

I ask because Id not want to bloat the mod with persistent refs if its not needed, in fact I don't even know if lots of persistent references would bloat the mod or its saved games.

Any information/advice?

Cheers

MVK
User avatar
Alkira rose Nankivell
 
Posts: 3417
Joined: Tue Feb 27, 2007 10:56 pm

Post » Fri May 27, 2011 6:58 pm

I don't have much experience with AI, but I'd go for the xmarker. That allows you to point multiple NPCs to the same xmarker and let them sort out the seating issue themselves.
User avatar
no_excuse
 
Posts: 3380
Joined: Sun Jul 16, 2006 3:56 am

Post » Fri May 27, 2011 10:31 pm

Thanks Qazaaq. I was leaning toward that anyway, generally because it doesn't feel right to have every single chair or bench allocated to specific NPC's, not to mention complex to make sure two don't try to sit in the same place at the same time!

MVK
User avatar
Damned_Queen
 
Posts: 3425
Joined: Fri Apr 20, 2007 5:18 pm

Post » Fri May 27, 2011 9:06 pm

I could be wrong but I thought furniture had to be a persistent reference anyway in order for NPCs to be able to use it?
User avatar
James Shaw
 
Posts: 3399
Joined: Sun Jul 08, 2007 11:23 pm

Post » Sat May 28, 2011 2:41 am

I think you might be right at that, but in any case, Id rather leave it to the AI to choose where they sit because then it gives a certain amount of randomness to the scene.

Cheers

MVK
User avatar
Princess Johnson
 
Posts: 3435
Joined: Wed Feb 07, 2007 5:44 pm

Post » Sat May 28, 2011 2:15 am

Okay, this is annoying! I assumed that UseItemAt would work here, but it doesnt. Even more annoying is that in the Wiki it says:

Note: To let a NPC sit in a chair without a reference to the chair you need to use Travel. With a Travel package and Location: Any Object, Furniture the NPC sits on the chair with the highest FormID. UseItemAt does not work all the time here.


How does this work? There is no Target in a travel package, and if Any Object: Furniture is selected then a location reference cannot be given. Do I really need to have another package to get the NPC to where the chairs are?

I tried a find package, which, according to the Wiki will allow the NPC to find the location, make a list of the items in the area and choose one accordingly, however, this doesnt work and the NPC remains standing in place, just as he does if I use the UseItemAt method.

So how do I get the NPC to choose a chair and sit down?

Cheers

MVK
User avatar
Chloe Lou
 
Posts: 3476
Joined: Sat Nov 04, 2006 2:08 am

Post » Sat May 28, 2011 7:46 am

Try it this way.

Give them a

Travel Package

location target xmarker (persistent) in your cell, flagged much reach location, set time to start,

Eat Package (the eat package will force them to get food and find a place to sit down has well without needing furniture persistent)

flag must complete, set time to run in hours

location current area

If setup that way, travel package run first complete, then eat package run until is complete, then you can wander package below eat package so they will wander in area until told to do something else, travel back home..

Read this has well should help alot..

http://cs.elderscrolls.com/constwiki/index.php/A_beginner%27s_guide_-_Appendix_3

look at my travellers mod and how it travel/eatpackages/wander packages are setup.

Corepc
User avatar
Bitter End
 
Posts: 3418
Joined: Fri Sep 08, 2006 11:40 am

Post » Sat May 28, 2011 6:13 am

Thanks Corepc Ill give that a go.

MVK
User avatar
Jack Walker
 
Posts: 3457
Joined: Wed Jun 06, 2007 6:25 pm


Return to IV - Oblivion