Is there a function or a script that I can make to reset all

Post » Tue Jun 19, 2012 7:10 am

As it stands, I don't need a respawn of all cells for a mod I'mdoing but an actual reset of all inventories. I'm not sure if there's a script or ingame function that does this already...does anyone know?

I know about "resetinventory" bu tthat's on a 1 on 1 npc basis, I want to know if there's a way I can force a reset inventory on every npc in the game.
User avatar
renee Duhamel
 
Posts: 3371
Joined: Thu Dec 14, 2006 9:12 am

Post » Tue Jun 19, 2012 8:38 am

http://www.creationkit.com/ResetInventory is a console-only function anyway.

The closest I know of would be http://www.creationkit.com/Reset_-_ObjectReference, but that's also for individual references and does more than you want anyway. What are you trying to accomplish, exactly?

Cipscis
User avatar
Jeff Tingler
 
Posts: 3609
Joined: Sat Oct 13, 2007 7:55 pm

Post » Tue Jun 19, 2012 9:20 am

My mod adds tons of weapons to the game, specifically it adds a lot of the weapons to Stormcloaks, and some are hand placed on the Storm Cloak Commanders. The free roaming versions of Stormcloaks, and the town guards in each town equip these weapons freely without any problem, since they're respawning NPCs. However, since most of the Stormcloaks at the camps are non respawning NPCs they wont get their inventories changed. So basically if a person comes into the camp before they used my mod, that NPC will be stuck with whatever items they had when they first met that NPC.

I want my items to be added to those NPC inventories and then have them load those changed inventories without having to change the NPCs from their non respawning form.
User avatar
Jynx Anthropic
 
Posts: 3352
Joined: Fri Sep 08, 2006 9:36 pm

Post » Tue Jun 19, 2012 1:41 pm

Presumably, then, these are all unique actors? Could you potentially just add the right equipment to their inventories manually via a quest script or something?

Cipscis
User avatar
Sophh
 
Posts: 3381
Joined: Tue Aug 08, 2006 11:58 pm

Post » Tue Jun 19, 2012 9:44 am

Presumably, then, these are all unique actors? Could you potentially just add the right equipment to their inventories manually via a quest script or something?

Cipscis

Nah because it's mixed in with a 127 user Leveled List: CWSoldierSons >_<.

It's not just those guys that I want to update, but anyone who uses my altered Leveled Lists.

Edit: Which will probably include other people too...it's like a world weapon addition kind of affair, so I need to reset everybody lol

Anyone have an idea how I might be able to do it? =/
User avatar
Adrian Powers
 
Posts: 3368
Joined: Fri Oct 26, 2007 4:44 pm

Post » Tue Jun 19, 2012 1:13 am

Actually Cipcis, do you know how might I be able to do it with a quest script? Out of curiousity?
User avatar
Jynx Anthropic
 
Posts: 3352
Joined: Fri Sep 08, 2006 9:36 pm

Post » Tue Jun 19, 2012 11:47 am

You could use a quest script with a few aliases that uses the method described in http://www.gamesas.com/topic/1349649-dynamically-attaching-scripts-to-actors-near-the-player/ to find the nearest actors to the player that require having their inventories reset (using whatever condition functions are appropriate), and then either add the items manually or, perhaps, reset them entirely if you're able to.

Cipscis
User avatar
Stacy Hope
 
Posts: 3391
Joined: Thu Jun 22, 2006 6:23 am


Return to V - Skyrim