Starfield

Starfield

评价数不足
Equip your companion using consol
由 Kporal 制作
Using consol and "bat" file tu equip NPC / companion
   
奖励
收藏
已收藏
取消收藏
How to ?
Description
I will show you with consol commands, how to equip your companion ( or any npc ) with anything you want.

When reading this guide, i assume your already know a bit about consol command, it is not made to explain each command in detail or how "target" / "reference" / "object id" ... work.

Consol command
  • unequipall This command will be use first to be sure the selected npc will not get any "corrupted" information
  • removeallitems player Here the command will obviously remove all inventory items from the target, and give it to the player
  • equipitem #id is similar to additem, but do not add more item if one is already present and equip it directly, additem will not.
  • cf "ObjectReference.AttachModToInventoryItem" #target #id Will allow you to attach a mod to "the first / last" item found or spawned in the inventory.

In most case for your personal usage you may use something like ( va'ruun inflictor exemple ) :
player.placeatme 0026D8A0 picklastref getselectedref amod 0028F444 amod 000FEA49 amod 000F4557 amod 0015DD18
This "bat" will create the weapon, select it in the consol and apply quality and rarity mod to it.

But it won't work when adding stuff directly in an inventory because additem or equipitem do not return the new reference object id.

When you want to edit the item on an inventory you must use :
player.additem 0026D8A0 player.cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 0028F444 player.cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 000FEA49 player.cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 000F4557 player.cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 0015DD18
Of course you can avoid "player." if you first select yourself in the consol ( prid player or 00000014 ), or if you have selected the npc you want to edit.

Again i will not explain in detail each command, a lot of website already explain everything beter than i will.

Also be carefull when adding a mod to your armor or weapon, if you use the help command for long barrel, you will see a lot of ID, because each weapon as it's own barrel mod, only the rarity will work for any weapon :
Calibrated 0028F442 Refined 0028F443 Advanced 0028F444
and for armor :
Calibrated 0011E2BC Refined 0011E2BA Advanced 0011E2B9 Superior 0003AF7D

Where
Go to your starfield folder, and create a .txt file at the same place of your Starfield.exe ( or in custom folder if your wish ).
Place the code inside the file, and in game use bat <filename> without the file extension.
If you use a folder : bat "Folder/Filename".
My own "equipnpc.txt"
unequipall removeallitems player equipitem 0026D8A0 cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 0028F444 cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 000FEA49 cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 000F4557 cf "ObjectReference.AttachModToInventoryItem" 0026D8A0 0015DD18 additem 002B558B 100 equipitem 0001754D cf "ObjectReference.AttachModToInventoryItem" 0001754D 0003AF7D equipitem 0001754F cf "ObjectReference.AttachModToInventoryItem" 0001754F 0003AF7D equipitem 0001754E cf "ObjectReference.AttachModToInventoryItem" 0001754E 0003AF7D equipitem 0021C784
2 条留言
Kporal  [作者] 2024 年 6 月 29 日 上午 7:59 
i havn't play for a while and a lot of update may have change few things, can't answer untill i play again :/
Lucas 2024 年 5 月 17 日 下午 3:42 
Hi! Thanks for this. for some reason, 'bat filename' spawns/equips the item and gets the refID on the console, but does not add any of the mods. Strangely, if I Ctrl+C and Ctrl+V the code itself from the txt file directly to the console, it works. I don't know what or why is not working as intended in my file. Here's what it looks like:

placeatme 00227CA3
picklastref
getselectedref
.amod 0003AF7D
.amod 000710F5
.amod 0013369C
.amod 002D01A2

obs.: it works both with or without the '.' before 'amod', bur does not work either way when trying to use the 'bat filename' command. Any further guidance will be very appreciated.