Hi all,
I am trying to make a command that will automatically change the response based on the game I am playing. I want to use this as I play a few FPS games where my sensitivity differs and many users come in and ask when settings I use.
I want to create a !sens command which when playing Splitgate will display Splitgate: 800 DPI | 4.0 Sens (Horizontal/Vertical) | 0.8 Zoom Multiplier and when playing Valorant it will display VALORANT: 800 DPI | 0.5 Sens.
This is what I have so far…
$(eval
var r = false;
if('$(codeOCE "{{game}}")' == 'Splitgate')
r = '800 DPI | 4.0 Sens (Horizontal/Vertical) | 0.8 Zoom Multiplier';
else if('$(codeOCE "{{game}}")' == 'VALORANT')
r = '800 DPI | 0.5 Sens';
if(r)
'"{{game}}": ' + r + '.';
else
'No sens information available.';
)
However, this seems to always give me a response of “No sens information available.”
I believe that I have seen some similar posts out there but none of them seem to work when I try to add them to my command list.
Thank you ^-^ <3