Make npc buy from another npc?

Post » Tue Jun 19, 2012 1:03 am

Is there anyway I can make an npc buy an item from another npc and go use that item, then the next day or two that npc has to go buy more? Like food for example. I want to make npcs consume food or skooma and have to resupply from a merchant. I'm assuming its a package if there is one but i have no idea where to start. Anyone have knowledge of how to do this
User avatar
KIng James
 
Posts: 3499
Joined: Wed Sep 26, 2007 2:54 pm

Post » Tue Jun 19, 2012 11:17 am

You can create your own packages and even package templates. You can make an NPC travel somewhere, and here's a hard part because you want him to automatically look for a nearby food merchant. I think you need to use keywords although I've never done that so I don't know how exactly do they work.

Then you would have to script it so the NPC eats some food shorlty after visiting a merchant. You'd do this in a Begin/End/Change tab. In order to make it seem more realistic you might make some dialogue. Then you'd just need to set a schedule.

However I think that some NPCs already go to a market and as for buying -- and having to buy... You won't get a complete simulation here. Firstly, how would that even look? There's no animation for handing an object, as far as I'm aware. So it would be just an NPC standing in front of a seller and then eating cheese. Secondly, if you want to have scripts that add items to NPC's inventories, check if they're not possibly hungry or whatever... Why? Most players won't observe nuances like this or they simply won't care. Even if they wanted this kind of realism it still wouldn't affect them as they couldn't look into this NPC's inventory or ask him about his addiction, nor would he really die from it (would he?), nor would he need to sell his stuff...

You know, this game's not a simulation, everything that's there exists because it matters to a player.

I'm sure you know what you're doing but remember to consider things like this, if you haven't already.
User avatar
ShOrty
 
Posts: 3392
Joined: Sun Jul 02, 2006 8:15 pm

Post » Mon Jun 18, 2012 9:10 pm

Alright I try and work some stuff out with that. I guess i'm not worried about the animations really. I just want some economy that is actually happening. Like Farmers produce potatoes merchant gets the supply, then the citizens buy it and consume it. That way i can physically ruin the economy if i killed the farmers or possibly take it over and sell my own supply. Seems possible but impossible at the same time. Always wanted a simulation in this game. Thanks for the help.
User avatar
Jeremy Kenney
 
Posts: 3293
Joined: Sun Aug 05, 2007 5:36 pm


Return to V - Skyrim