
While this mod in itself is rather simple, so are making custom hotkeys and macros, if you know the commands for in-game. Many of the custom hotkeys in this mod run simple commands that can be manually typed in-game, just via a button press instead. This helps with certain things that may otherwise be a tedious process to do, I.E. clicking three different buttons to get into workshop mode, or toggling your spacesuit in settlements. There's also the macro functionality, which provides a way to write commands OR code like if elseif scripts into a macro that can be ran by calling that macros name. This means that many macros can be made to run an entire script in one single button press.
Basically, to start, let's take a look at a function that's already included in this mod:
[Macros]
addSpeed=if player.getav speedmult < 110; player.modav speedmult 5; elseif player.getav speedmult >= 110; player.forcev speedmult 110; endif
remSpeed=if player.getav speedmult > 20; player.modav speedmult -5; elseif player.getav speedmult <= 20; playerforceav speedmult 20; endif
To make this into a usable hotkey, we need to specify it under a new section, as such:
[Hotkeys]
; Control speed based on macro limiters above
CTRL-MouseWheelDown=remSpeed
CTRL-MouseWheelUp=addSpeed
Additionally, you can easily specify specific commands in just hotkeys for a simple function to run, such as:
; Toggle the wait menu without having to sit/sleep
t=showmenu sleepwaitmenu
Create Your Own Function
Let's try and create our own new function, something that uses a simple if statement. This is relatively straight forward and goes off of conditions based on the values of variables specified.
To start, we'll need a hotkey, which we can make like so:
[Hotkeys]
F6=
F6=if player.getav health < 1000; player.modav health 1000; endif
3 comments