SeraphimDreams Posted July 27, 2015 Share Posted July 27, 2015 I've been trying to take the toggle sides script from this mod, http://www.nexusmods.com/newvegas/mods/38482/?, and change the default keybind, c, to that of my liking. This is the default script: scn ROTSToggleSidesScript ; ------------------------------------------------------------------------------------------------------------------------------------------------------ ; Adds a hotkey to change sides. ; Written by "woodbyte" for "Really OTS". ; ------------------------------------------------------------------------------------------------------------------------------------------------------int iVersionint invert_key_pressedbegin GameMode if ReallyOTS.iVersion >= 5 ; only run if base plugin is initialized and the right version if iVersion != 1 set iVersion to 1 endif ; toggle invert when 'c' key is pressed ; ------------------------------------------------------------------------------------------------------------------------------------------------------ if IsKeyPressed 46 if invert_key_pressed == 0 if ReallyOTS.bInverted set ReallyOTS.bInverted to 0 else set ReallyOTS.bInverted to 1 endif set invert_key_pressed to 1 endif else set invert_key_pressed to 0 endif endif And this is what I tried changing it to, but nothing seemed to actually change: scn ROTSToggleSidesScript ; ------------------------------------------------------------------------------------------------------------------------------------------------------ ; Adds a hotkey to change sides. ; Written by "woodbyte" for "Really OTS". ; ------------------------------------------------------------------------------------------------------------------------------------------------------int iVersionint invert_key_pressedbegin GameMode if ReallyOTS.iVersion >= 5 ; only run if base plugin is initialized and the right version if iVersion != 1 set iVersion to 1 endif ; toggle invert when 'mouse5' key is pressed ; ------------------------------------------------------------------------------------------------------------------------------------------------------ if IsKeyPressed 46 if invert_key_pressed == 0 if ReallyOTS.bInverted set ReallyOTS.bInverted to 0 else set ReallyOTS.bInverted to 1 endif set invert_key_pressed to 1 endif else set invert_key_pressed to 0 endif endif Bear in mind I am fairly atrocious at scripting so layman's terms where applicable would be appreciated. xD Link to comment Share on other sites More sharing options...
Fallout2AM Posted July 27, 2015 Share Posted July 27, 2015 The line that defines the C is this one: if IsKeyPressed 46To change key, change that number following this table:http://www.gribbleshnibit.com/projects/NVSEDocs/#Key_Codes (under "DirectX scancodes") Link to comment Share on other sites More sharing options...
SeraphimDreams Posted July 27, 2015 Author Share Posted July 27, 2015 Alright, that's what I figured, just didn't know the values to change. Link to comment Share on other sites More sharing options...
Fallout2AM Posted July 27, 2015 Share Posted July 27, 2015 you're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts