This mod is almost what I want but I only want a single hotkey which cycles through available throwables in a set order and loads the next available type.
I tried to adapt this into the mod for my personal use but all it does is print the "X Equipped" part, it doesn't actually swap the grenades or even do the checks. Do I have to take away the 2nd Equals Sign in each line?
I've Reworked Throwables to include more prompts like, if player doesn't have desired throwable in inventory text prompt will say Restock "desired throwable"; will also inform player if "desired throwable" is already equipped. *Major change to [Macro] & [Hotkeys] structure due to crashing* I had to remove the string commands from within [Macro] section since it was causing my game to crash if it was checking the macro section for full command strings. So now strings for throwables are inputted directly from [Hotkeys], it will not refer to the [Macro] for the full command strings anymore like you have it setup in your mod .ini file. Doing this has stopped my game from crashing when I press my keybinds for throwables. Not sure if others are having this same issue, might just be me :( Anyways got it setup like this: Throwables
Feel free to implement these changes into your mod since i bet it could help some people out. Because I noticed you had the same structure to your .ini file though others might have the same issues i did, this will solve that. I also see you plan on adding aid consumables to your mod. l have a similar setup already flushed out you can check it out on my comment you should see it in the Full version of my .ini Got a cool Priority Care System setup there as well you should totally include that into your future mod update.
12 comments
Update 0.2 is out
This update removes the cheat aspect of the mod and makes changing keybinds easier.
I will also add macros for the most important consumables and powers so those can be easily hotkey'd
Let me know what you would like to see added for the consumables.
Here is a suggestion to fix the "cheat" aspect if you don't have the item.
[Macros]
echo=cgf "Debug.Notification"
check=player.getitemcount
equip=player.equipitem
[Hotkeys]
Shift-1=if check 115EF == 0; echo "You have no Frag Grenades"; else equip 115EF;echo "Frag Grenade equipped"; endif
Edit : added spoiler tag to clean up
Cheers
*Major change to [Macro] & [Hotkeys] structure due to crashing*
I had to remove the string commands from within [Macro] section since it was causing my game to crash if it was checking the macro section for full command strings. So now strings for throwables are inputted directly from [Hotkeys], it will not refer to the [Macro] for the full command strings anymore like you have it setup in your mod .ini file. Doing this has stopped my game from crashing when I press my keybinds for throwables. Not sure if others are having this same issue, might just be me :(
Anyways got it setup like this:
Throwables
pge="14".GetEquipped
echo=CGF "Debug.Notification"
equip="14".EquipItem
check="14".GetItemCount
[Hotkeys]
; [ Shift ]
; [ Throwables ]
; Equip Frag Grenade
Shift-1=if pge 000115EF == 1 ; echo "Frag Grenade Already Equipped!" ; elseif check 000115EF < 1 ; echo "Restock Frag Grenade!" ; else ; equip 000115EF ; endif ;
; Equip Impact Grenade
Shift-2=if pge 0026D89F == 1 ; echo "Impact Grenade Already Equipped!" ; elseif check 0026D89F < 1 ; echo "Restock Impact Grenade!" ; else ; equip 0026D89F ; endif ;
; Equip Shrapnel Grenade
Shift-3=if pge 0026D89D == 1 ; echo "Shrapnel Grenade Already Equipped!" ; elseif check 0026D89D < 1 ; echo "Restock Shrapnel Grenade!" ; else ; equip 0026D89D ; endif ;
; Equip Incendiary Grenade
Shift-4=if pge 0026F180 == 1 ; echo "Incendiary Grenade Already Equipped!" ; elseif check 0026F180 < 1 ; echo "Restock Incendiary Grenade!" ; else ; equip 0026F180 ; endif ;
; Equip Particle Grenade
Shift-5=if pge 0026D89E == 1 ; echo "Particle Grenade Already Equipped!" ; elseif check 0026D89E < 1 ; echo "Restock Particle Grenade!" ; else ; equip 26D89E ; endif ;
; Equip Cryo Mine
Shift-6=if pge 00389F34 == 1 ; echo "Cryo Mine Already Equipped!" ; elseif check 00389F34 < 1 ; echo "Restock Cryo Mine!" ; else ; equip 389F34 ; endif ;
; Equip Inferno Mine
Shift-7=if pge 00389F33 == 1 ; echo "Inferno Mine Already Equipped!" ; elseif check 00389F33 < 1 ; echo "Restock Inferno Mine!" ; else ; equip 389F33 ; endif ;
; Equip Fragmentation Mine
Shift-8=if pge 0004A41A == 1 ; echo "Fragmentation Mine Already Equipped!" ; elseif check 0004A41A < 1 ; echo "Restock Fragmentation Mine!" ; else ; equip 4A41A ; endif ;
;Equip Stun Mine
Shift-9=if pge 003C23E3 == 1 ; echo "Stun Mine Already Equipped!" ; elseif check 003C23E3 < 1 ; echo "Restock Stun Mine!" ; else ; equip 3C23E3 ; endif ;
; Equip Tesla Pylon
Shift-0=if pge 00389F37 == 1 ; echo "Tesla Pylon Already Equipped!" ; elseif check 00389F37 < 1 ; echo "Restock Tesla Pylon!" ; else ; equip 389F37 ; endif ;
; Equip Toxic Gas Mine
Shift--=if pge 003C23E4 == 1 ; echo "Toxic Gas Mine Already Equipped!" ; elseif check 003C23E4 < 1 ; echo "Restock Toxic Gas Mine!" ; else ; equip 3C23E4 ; endif ;
Feel free to implement these changes into your mod since i bet it could help some people out. Because I noticed you had the same structure to your .ini file though others might have the same issues i did, this will solve that.
I also see you plan on adding aid consumables to your mod. l have a similar setup already flushed out you can check it out on my comment you should see it in the Full version of my .ini Got a cool Priority Care System setup there as well you should totally include that into your future mod update.
[Menu]
bUseConsoleHotkeys=1
Also try adding the below to your StarfieldCustom.ini file if you have not already
[Archive]
bInvalidateOlderFiles=1
sResourceDataDirsFinal=
Do like below (note the bold in the = sing) and it works and does't cause any issues for people to just copy and paste
[Menu]
bUseConsoleHotkeys=1
Could this mod be adapted for space magic instead?
Edit: Apologies. I only JUST read the disclaimer. I was about to try to figure it out on my own using your mod. XD