Jump to content

Replacing statics with containers dynamically.


DuskWulf

Recommended Posts

I have some experience with the GECK as you can see if you check out my mods, but this... Oh, this is one that I'm not sure I could figure out.

 

I like mods like Loot All Cars. They're nifty. The problem is is that I have to fire up FNVEdit and run a batch script to change all the vehicles in every mod I have. That's a lot of fun.

 

What I was wondering is if there was a way to say, when the player steps into a new cell, build an array of all statics, parse each one against a form list, record that static's X/Y/Z position, disable it and mark it for delete, then spawn in the appropriate container at that location in the appropriate X/Y/Z position. And once all that's done perhaps mark that cell in a form list so that the code won't run there again. Is there a resource efficient way of doing that?

 

I know how to spawn things at X/Y/Z positions as I use that technique in a bunch of my mods to avoid the dreaded, bedeviled form edit. What I don't know is if there's a resource efficient way to do what I described. I think I can manage most of that myself, but I'm a little fuzzy on the scanning for statics.

 

Another thing that occurs to me is that if this is achievable, it could also be used to replace mods like Root 'n Loot. I don't know how viable this is, but it occurs to me that it could solve a lot of headaches for mod users. So, this is as much of a mod request as it is a request for help, I don't mind if someone tells me how to do it or does it themself. I'm not at all invested in credit here, it's just something I'd want to see exist.

 

If it can't be done in a resource friendly way, or can't be done at all, of course? Eh. That's just the way it is. I'm asking now as there's a spat of new xNVSE plugins with loads of new functions. So perhaps... ?

 

Edit: Or, wait... Could a script be attached to the static to delete itself and replace itself with the container? I hadn't thought of that. Basically, attaching scripts via script like I do with Brahmin in FAE? Or is that not something you can do with statics?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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