Jump to content

Duplicating Weapons with Specific Crafted Mods


yufuhaowuding

Recommended Posts

What I'm trying to do:

 

I thought this would be simple -- Using console commands, create new instances of weapon objects, specifically with the current crafted modifications to be used in equipping settlers by templates -- ultimately to be executed by batch files.

 

Issues and Questions:

 

1) Is there a way to keep a REFID for a weapon object from changing when picked up/placed in a container? Currently the REFIDs for the weapons I'm attempting to duplicate keep changing when placed in containers.

 

or

 

2) Is there a way to identify the REFID of the weapon objects within a container without having to remove it (and thereby changing the REFID)?

 

or

 

3) Is there a variable in the console commands that uses the targeted REFID even when in a certain command's syntax, the targeted/prid REFID is, unless otherwise specified, the object things are happening to?

 

or

 

4) Spawn a weapon from scratch with a specific set of standard modifications using only 1 line of commands (since the REFID will not be known).

 

Details on my attempts:

 

Ideally, I want to be able to target/prid a new settler, and run a single bat command, which will give the settler with the loadout off the template I specify.

 

Attempt 1) I created the modded versions of each weapons I wanted to be used in loadouts from which the "SpawnDupe" command will be used to spawn a new copy of the object into the targeted container (settler). This requires the REFID of the weapon objects. I found out the REFIDs using "GetPlayerGrabbedRef" but they change when I store the objects in a container (my preference), so dupe command returns errors. --- Either returning the REFID of objects within a container or making a REFID not change for specific objects would make this attempt work.

 

Attempt 2) I created different containers that will store the modded instance of the weapon objects for each different template loadout. I tried to use "DuplicateAllItems" command to duplicate the items of the template container INTO the Settler. This works but not without manually inputting the REFID of the settler, as the syntax would have to be: <ContainerREFID>.duplicateallitems <SettlerREFID> meaning there's no easy way to simply incorporate this in a single bat command. -- Having a way of using this command where the <SettlerREFID> is automatically filled in by what is currently prid/targeted would make this attempt work.

 

I'm aware that failing solutions to the above issues means I will have to leave the weapon objects lying around somewhere outside of a container and never touch them -- to keep REFID static -- Or manually enter the duplicateallitems command with the necessary IDs on hand -- but I'm trying to find another way!

 

Any suggestions are appreciated.

Edited by yufuhaowuding
Link to comment
Share on other sites

  • 6 months later...
  • 1 year later...

this might be necro but i guess its interesitng every now and then, when one is interested in equpping all their settlers with the exact same items, with certain mods attached to them:

 

first i made myself a batch file containing the console command Spawndupe with 20 executions. using ingame selecting the weapon or armor to duplicate to have its REFID executing my bat file. this is the easy way to have dupes for numbers of below 100 i guess. when it comes to numbers above 100 i use the Attempt 2( version of OP. storing ie 100 items in one container and having an empty 2nd nearby. now i console 'REFID#filledcontainer'.DuplicateAllItems 'REFID#emptycontainer'.

in OP's attempt 2) it's a hassle to fill items directly to settlers, since they do not equip their newly console-filled items by theirselfs. not to mention when one have 200+ settlers to quip. at this point i use the Central Settlement Armory mod here from nexus http://www.nexusmods.com/fallout4/mods/25964/? to distribute my items to all settlers across my settlements.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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