Fallout 4

Fallout 4

View Stats:
Daetil Nov 9, 2021 @ 3:55pm
Custom console commands
Do you know if I'd be able to create a custom command to run on the console? Something like a script to run multiple console commands at once?

I know I could use a mod (that probable already exists and covers what I need) but I'm curious about this!

So for instance, I would run a few commands to add materials to my inventory, however, instead of running commands one by one or adding them all separate by ";", I'd create a script (in or out of the game) and would simply call it when I want all those items.

This is probably some basics of modding the game, but I have zero knowledge of it, so thought about asking this specifically!

Thanks for any help! :BL3Thumbsup:
Originally posted by =EGC= kansasterry:
Some things are easy to do using a bat file for example if we wanted to stop our companion from drawing their gun when we do we could make a txt file with the command.

cf "actor.Removekeyword" TeammateReadyWeapon_DO

Then execute in the console by using the command "bat filename" without the quotes filename being what we named the txt file we saved in the folder the fallout4.exe file is located.

But if we wanted to for example add a lot of building materials we would need to know the load order of the DLC or mod the item comes from then run something like this.

additem 1bf72d 999 additem 1bf72e 999 additem 1bf72f 999 additem 6907a 999 additem aec5b 999 additem aec5c 999 additem aec5d 999 additem aec5e 999 additem 6907b 999 additem aec5f 999 additem 106d99 999 additem 6907c 999 additem aec60 999 additem 6907d 999 additem 1bf730 999 additem 69087 999 additem aec61 999 additem 6907e 999 additem 69085 999 additem aec62 999 additem aec63 999 additem aec64 999 additem 69086 999 additem 1bf732 999 additem 6907f 999 additem 106d98 999 additem 69081 999 additem aec66 999 additem 731a4 999 additem 69082 999 additem 731a3 999 additem 154ad2 999 additem 52409 999 additem 366bf 999 additem 9dcc4 999 additem 33102 999
< >
Showing 1-8 of 8 comments
Bored Peon Nov 9, 2021 @ 3:57pm 
You can use a .bat file.
The author of this thread has indicated that this post answers the original topic.
=EGC= kansasterry Nov 9, 2021 @ 4:08pm 
Some things are easy to do using a bat file for example if we wanted to stop our companion from drawing their gun when we do we could make a txt file with the command.

cf "actor.Removekeyword" TeammateReadyWeapon_DO

Then execute in the console by using the command "bat filename" without the quotes filename being what we named the txt file we saved in the folder the fallout4.exe file is located.

But if we wanted to for example add a lot of building materials we would need to know the load order of the DLC or mod the item comes from then run something like this.

additem 1bf72d 999 additem 1bf72e 999 additem 1bf72f 999 additem 6907a 999 additem aec5b 999 additem aec5c 999 additem aec5d 999 additem aec5e 999 additem 6907b 999 additem aec5f 999 additem 106d99 999 additem 6907c 999 additem aec60 999 additem 6907d 999 additem 1bf730 999 additem 69087 999 additem aec61 999 additem 6907e 999 additem 69085 999 additem aec62 999 additem aec63 999 additem aec64 999 additem 69086 999 additem 1bf732 999 additem 6907f 999 additem 106d98 999 additem 69081 999 additem aec66 999 additem 731a4 999 additem 69082 999 additem 731a3 999 additem 154ad2 999 additem 52409 999 additem 366bf 999 additem 9dcc4 999 additem 33102 999
MoonC A T Nov 9, 2021 @ 4:09pm 
Sure, why destroy your game experience when you can totally obliterate it
Originally posted by ᴹᴼᴼᴺC A T:
Sure, why destroy your game experience when you can totally obliterate it

Its up to each individual how they want to play the game Personally I prefer the chalange when actually playing the game however when creating then testing a mod sometimes we have to cut corners or it would take years to fully test and debug one for release.

Especially when we add perk and level restrictions to certain parts.
Last edited by =EGC= kansasterry; Nov 9, 2021 @ 4:13pm
ƎϽ∀ƎԀ Nov 9, 2021 @ 4:17pm 
Originally posted by ᴹᴼᴼᴺC A T:
Sure, why destroy your game experience when you can totally obliterate it
After 3300 hrs and too many restarts, personally, I got tired of scrounging for building materials. I have used bat files for building my settlements for quite some time now. I enjoy the building, hate the forever running out of materials when I'm 1/2 way through.
Jouchebag Nov 9, 2021 @ 4:22pm 
Originally posted by ƎϽ∀ƎԀ:
Originally posted by ᴹᴼᴼᴺC A T:
Sure, why destroy your game experience when you can totally obliterate it
After 3300 hrs and too many restarts, personally, I got tired of scrounging for building materials. I have used bat files for building my settlements for quite some time now. I enjoy the building, hate the forever running out of materials when I'm 1/2 way through.

As someone recently pointed out to me: The Workshop Extended (IIRC) mod allows an unlimited build mode.

Otherwise the bat files a lot of people use are functional, but seriously clunky. Seems unnecessary.
Last edited by Jouchebag; Nov 9, 2021 @ 4:25pm
ƎϽ∀ƎԀ Nov 9, 2021 @ 6:40pm 
Originally posted by Jouchebag:
Originally posted by ƎϽ∀ƎԀ:
After 3300 hrs and too many restarts, personally, I got tired of scrounging for building materials. I have used bat files for building my settlements for quite some time now. I enjoy the building, hate the forever running out of materials when I'm 1/2 way through.

As someone recently pointed out to me: The Workshop Extended (IIRC) mod allows an unlimited build mode.

Otherwise the bat files a lot of people use are functional, but seriously clunky. Seems unnecessary.
Most of those mods add too much that I am not interested in, are heavily scripted and slow the loading screens down too much. i would rather use console codes that I make no impact on the game performance.
As for clunky, why have a mod running constantly rather than typing "bat buildmats" and its done.
Last edited by ƎϽ∀ƎԀ; Nov 9, 2021 @ 6:43pm
Daetil Dec 15, 2021 @ 3:44pm 
Originally posted by ƎϽ∀ƎԀ:
Originally posted by Jouchebag:

As someone recently pointed out to me: The Workshop Extended (IIRC) mod allows an unlimited build mode.

Otherwise the bat files a lot of people use are functional, but seriously clunky. Seems unnecessary.
Most of those mods add too much that I am not interested in, are heavily scripted and slow the loading screens down too much. i would rather use console codes that I make no impact on the game performance.
As for clunky, why have a mod running constantly rather than typing "bat buildmats" and its done.

I couldn't have said it better! :praisesun:
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Nov 9, 2021 @ 3:55pm
Posts: 8