Equip and unequip items with hotkey. Ini setup. V1.0

Equip and unequip items with hotkey. Ini setup. V1.0

A line of code to equip/unequip items in your inventory with a dedicated hotkey. Uploading for all the people who actually like to control their character and have a deep dislike of items magically “hiding in breathable areas”.

A line of code to equip/unequip items that are in your inventory by pressing the chosen key (goes into your hotkeys .ini file):

[Hotkeys]
H=If player.getitemcount XXX > 0; If player.getequipped XXX > 0; player.unequipitem XXX; Else; player.equipitem XXX; EndIf; EndIf; EndIf

You need to replace XXX with a FORMID of an item you will be equipping/unequipping, e.g.: 0016D15C is a FORMID for one of the helmets.
To get a FORMID of an item you can, for ex., give an item to a follower, open the console, click on follower so that NPC_… will show up in the center, and enter showinventory command which will list your item and it’s FORMID. Or you can download an awesome StarUI Inventory mod and tick an option to show FORMIDs on item cards.
You can choose any hotkey instead of H, just be careful assigning hotkeys already assigned to smth in-game.
You only need to write[Hotkeys] once, as it is a section header.
You can duplicate this line and assign different hotkeys to different FORMIDs as many times as you wish (e.g.: H to helmets, J to suit, etc.).

Installation:
If you use ModOrganizer you know what to do.

Otherwise:
1. StarfieldConsole.ini.

If you already have a .ini file with hotkeys, add the code above to it changing XXX to your item’s FORMID and the hotkey from H to whatever. That’s it.
If you don’t have a .ini file with hotkeys (e.g: StarfieldConsole.ini or StarfieldHotkeys.ini), download and place the provided StarfieldConsole.ini into your %UserProfile%\Documents\My Games\Starfield.

2. Starfield.Custom.ini.

If you already have a Starfield.Custom.ini, make sure that it contains
bUseConsoleHotkeys=1
sConsoleINI=StarfieldConsole.ini or StarfieldHotkeys.ini
If you don’t have a Starfield.Custom.ini download and place the provided Starfield.Custom.ini into your %UserProfile%\Documents\My Games\Starfield.

Uninstallation:
Just remove all the code/files you added.
These lines do not affect anything except the keys you assign them to.

Credits:

mrBrain101

Download mod

File File size
rar Equip and unequip items with hotkey. Ini setup 298 B
Share mod:

Leave a Reply

Your email address will not be published. Required fields are marked *