Jump to content

Selecting (prid) stongboxes from outside its cell


filosophem

Recommended Posts

Hello,

I'm trying to write a script that resets strongboxes and safes (and why not add some random items) so it can be stolen again when burglary


I made it as follows with 1 file for each strongbox :

- Call 1st script in console manually, wich basically does :

-> prid <strongbox id>

-> resetinventory

-> call next script

-> (repeat same on next script)


The problem is we can't use prid command on a strongbox if we have not been in the cell it's located during the curent save. And it must be recent, it won't work anymore after 2-3 new cells loading.


Exemple :

Location : Solitude

prid ea733 (Solitude's Archery strongbox ID)

Result : doesn't work, "Item "ea733" not found for parameter ObjectReferenceID."

But if I enter Solitude's Archery, go out again (so I'm in Solitude) and prid ea733, it works and I'm able to resetinventory.

If I stay in Solitude's Archery, it also works, I can prid.


On the other hand if after this I F5/F9, it won't work anymore, same if I go out of Solitude and come back in


All this is not needed for other containers, such as chests, wardrobes, etc. You can prid any other container (chest,...) without entering his cell.

So I deduce this restriction only applies to containers that does not respawn : strongboxes and safes.


I'd like to know how to prid a strongbox from outisde the cell and without "loading" the strongbox by entering the cell it's located.

I tried to teleport in each cell before using prid with coc <location> then prid and resetinventory but it crashes the game, unsurprisingly.


If anyone could tell me how I can prid a safe without "loading" it, or a workaround, or a mod that does similar, I'd be very grateful.


Thanks !

Edited by filosophem
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...