Post by tokidoki on Jan 1, 2012 11:18:45 GMT
I was bored (the beginning of many great things) and i took it upon myself to extend/expand upon many features of NWN that i felt were lacking/working not up to my standards.
And as a result, i created a script that does just as such, and adds a few useful features that i simply couldn't live without.
I present "Crack-ly's NWN Feature/Extension Script!"
-------------------------------------------------------------------------------------------------------
Use Number Keys to Cast Spells
I was a tad bit annoyed at my Function keys (f1-f12), sometimes they tend to be a bit awkward to use, specially with the Ctrl and Shift modifiers.
and i always wondered why, or what kind of insane keyboard the guys who made NWN had been using that let them hit the f1-f12 keys +shift/ctrl without massive hands and/or clicking them.
So i went and made a script to fix that and i figured why not post it here since i couldn't find anything similar on the forums already, and maybe you guys could get some use out of it.
The script simply makes your 1,2,3,4,5,6,7,8,9,0,-,= keys additionally send the corresponding f1,f2,f3 ect keys. It works with Ctrl and Shift modifiers, and you can even still use your normal F1-F12 keys when it's active. This addition only occurs when you have Neverwinter Nights maximized, as to not interfere with any background programs.
The only downside is when you type in chat using any of the 1,2,3,4,5,6,7,8,9,0,-,= keys. The program will try to cast the corresponding spells, so don't put your health potions on the common ones like "!, @, *, (,),-,=".
------------------------------------------------------------------------------------------------------
Added 1/2/2012 (Thanks to Gandoron!)V1.2+
Auto Tabbing!
It also now includes a rebind of your Console key "~" to turn on Auto-Tabbing.
Auto tabbing does two things, it holds down your tab button and keeps all mobs highlighted. As well as refreshing tab every second or so to keep all the mob health displays updated.
New: Pressing Tab will stop the script in case you need to concentrate on single-targetting mobs.
Downsides: Pressing alt will tab you out of the game, because it's counting tab as constantly pressed.
-------------------------------------------------------------------------------------------------------
Added 1/21/12 V1.4+
Additional Quickbars (i needed them on sorc!)
You can turn this feature on or off, just edit the "Quickbars" value from 1 to 0 in the script with notepad. Make sure it saves as a .ahk
The quickbars are in a bit of a buggy form at the moment, but they are quite helpful and the bugs are usually remedied by pressing the hotkey button again.
This feature makes your F1/F2/F3 Keys (Since now you can use the 1 and 2 keys) Toggle additional hotbars on your main action bar. Similarly to how Ctrl and Shift do.
This uses the !qb functionality built into Higher-Ground, so items/epic spells/feats sometimes dont save, but spells do, and if you only change the spells across both hotbars it will leave the non-spells in the correct places.
Example of how i'm using it. (Avoiding epics/items)
I suggest you make a backup quickbar of your main bar (!qb save 1 Backup 1). So that if it does decide to switch bars before saving/ect, you can type "!qb 1" and it's back to normal!
IT uses quickbar slots 9(Default), 8(F1) ,7(F2) and 6(F3).
Cool - Feature: Tapping F1, F2 or F3 will lock the quickbar on that slot. Letting you move things to it with ease/cast with ease. Tapping the same button will return it to default, hitting any of the other scripted quickbar keys won't work until you swap back to default. You can use this feature to have easily swappable mainbars without holding down the buttons.
-------------------------------------------------------------------------------------------------------
Added 1/30/12 V1.55+
Easy Combat-Casting Toggle!
Disabled by Default (Enable at your own discretion, has a high likelyhood of making it difficult to communicate via chat with others)
---If your spacebar key does start hitting enter when you're typing. Hit enter once, then move while the chat box is open. This will set the value back to 0. (Every time you hit enter it swaps the value between 0 and 1, if it's 1 it tries to initiate combat casting when you press space)
Spacebar now Toggles "Combat-Casting Mode"
After toying with combat casting, and wishing it was permanently enabled (not a feature yet, but may be in the future)
I figured that most casters neglect this awesome combat pose, because it's far too tedious to manage, so i tried to make it easier for you guys to remember to use it, and make it simple without taking a casting slot or anything.
This has a high chance of constantly hitting "Enter" when you use the spacebar because of limitations on how i'm detecting typing input, as a suggestion i would turn this feature off (Change the variable at the top to 0) unless you don't like talking to people. It works sometimes, but it's also frequently difficult.
-- Soon i'll probably change the hotkey to something not used for typing.
----------------------------------------------How To----------------------------------------------------
You have two choices
EXE
- This version isn't editable, meaning you can't toggle the individual features. But is provided because many users were experiencing issues running the script on Windows Vista/7. (It was running, but not working in game).
You also don't need autohotkey to use this version.
Download the Mediafire link and pop it anywhere you please, then click and enjoy!
(Make sure you run it as administrator, to bypass security settings if you're using Vista or Windows 7.)
www.mediafire.com/file/fabnkgmlqhs7974/Crack-ly's Nwn-Script v1.61.exe
AHK (script)
-This version is editable, meaning you can pop in and change the different features, turning them on and off depending on if you want to use them or not. The script is generally well commented and all features i've identified as "toggleable" are documented and changable at the top, accessed via a simple program like notepad (make sure you save it as "All files" to retain the .ahk). For more experienced users you can see generally how i managed each function and edit things like which hotkeys are bound, and even make some improvements of your own (post improvements, i'd love to see them/add them!)
To run this however you need "Autohotkey"
www.autohotkey.com/download/AutoHotkeyInstall.exe
This version might also not run correctly if you have strict security settings on vista/7, if this is the case it will show up in your taskbar, but not do anything ingame. To solve this; Either run the script as administrator, or if that option's not available make the edits/changes you're interested in, then right click and "Compile" the script into a personal working EXE, which you should be able to run as administrator.
www.mediafire.com/file/9wtmwscuqe9lr0c/Crack-ly's Nwn-Script v1.61.ahk
Tell me what you think/any bugs you guys find so i can attempt to fix them. You can toss a post here or harass me ingame (Account = Mack1510).
____________________________Changelog_____________________________
v1.6
-Updated distribution method. Exe doesn't require autohotkey installed to function, but works exactly the same. Additionally it should work on machines where it didn't before. (Run it as administrator)
v1.59
-Disabled Combatcasting Via Spacebar. It's just beyond my technical powresss to determine when a player was typing or not.
-You can still turn it on, but it may make your spacebar into an enter key sometimes (Requiring you to hit enter, then move to fix)
v1.58
-Completely changed the input command system. Commands are now copy/pasted into chat, as opposed to input individually. This prevents them from activating windows like the spellbook/ect.
-The quick chat window will still probably activate rarely, because paste is Ctrl+V
-Combat-Casting Mode is once again enabled by default, it shouldn't get stuck permanently entering messages every time you hit space anymore.
v1.55
-Spacebar now Toggles "Combat-Casting Mode" when pressed.
: This will not interfere with typing (If it does, tell me)
: You don't need combat casting on your bar to use this!
: This feature can be toggled on/off, and if you guys ask me nicely in a post i can modify the script to allow you to choose from an assortment of combat feats, like parry or flurry of blows/ect.
-Worked on making the script less buggy as a whole, i promise it wont overwrite things anymore soon. Or open wierd-windows and things.
v1.51
-(Fixed) The F3 hotbar was incorrectly saving to 5 and 6, instead of 9 and 6!
-As a result the F3 hotbar should now work.
v1.5
-Fixed a bug where the "v" button no longer worked after using F1/F2/F3
-Slightly increased the speed of hotbar transitions.
And as a result, i created a script that does just as such, and adds a few useful features that i simply couldn't live without.
I present "Crack-ly's NWN Feature/Extension Script!"
-------------------------------------------------------------------------------------------------------
Use Number Keys to Cast Spells
I was a tad bit annoyed at my Function keys (f1-f12), sometimes they tend to be a bit awkward to use, specially with the Ctrl and Shift modifiers.
and i always wondered why, or what kind of insane keyboard the guys who made NWN had been using that let them hit the f1-f12 keys +shift/ctrl without massive hands and/or clicking them.
So i went and made a script to fix that and i figured why not post it here since i couldn't find anything similar on the forums already, and maybe you guys could get some use out of it.
The script simply makes your 1,2,3,4,5,6,7,8,9,0,-,= keys additionally send the corresponding f1,f2,f3 ect keys. It works with Ctrl and Shift modifiers, and you can even still use your normal F1-F12 keys when it's active. This addition only occurs when you have Neverwinter Nights maximized, as to not interfere with any background programs.
The only downside is when you type in chat using any of the 1,2,3,4,5,6,7,8,9,0,-,= keys. The program will try to cast the corresponding spells, so don't put your health potions on the common ones like "!, @, *, (,),-,=".
------------------------------------------------------------------------------------------------------
Added 1/2/2012 (Thanks to Gandoron!)V1.2+
Auto Tabbing!
It also now includes a rebind of your Console key "~" to turn on Auto-Tabbing.
Auto tabbing does two things, it holds down your tab button and keeps all mobs highlighted. As well as refreshing tab every second or so to keep all the mob health displays updated.
New: Pressing Tab will stop the script in case you need to concentrate on single-targetting mobs.
Downsides: Pressing alt will tab you out of the game, because it's counting tab as constantly pressed.
-------------------------------------------------------------------------------------------------------
Added 1/21/12 V1.4+
Additional Quickbars (i needed them on sorc!)
You can turn this feature on or off, just edit the "Quickbars" value from 1 to 0 in the script with notepad. Make sure it saves as a .ahk
The quickbars are in a bit of a buggy form at the moment, but they are quite helpful and the bugs are usually remedied by pressing the hotkey button again.
This feature makes your F1/F2/F3 Keys (Since now you can use the 1 and 2 keys) Toggle additional hotbars on your main action bar. Similarly to how Ctrl and Shift do.
This uses the !qb functionality built into Higher-Ground, so items/epic spells/feats sometimes dont save, but spells do, and if you only change the spells across both hotbars it will leave the non-spells in the correct places.
Example of how i'm using it. (Avoiding epics/items)
I suggest you make a backup quickbar of your main bar (!qb save 1 Backup 1). So that if it does decide to switch bars before saving/ect, you can type "!qb 1" and it's back to normal!
IT uses quickbar slots 9(Default), 8(F1) ,7(F2) and 6(F3).
Cool - Feature: Tapping F1, F2 or F3 will lock the quickbar on that slot. Letting you move things to it with ease/cast with ease. Tapping the same button will return it to default, hitting any of the other scripted quickbar keys won't work until you swap back to default. You can use this feature to have easily swappable mainbars without holding down the buttons.
-------------------------------------------------------------------------------------------------------
Added 1/30/12 V1.55+
Easy Combat-Casting Toggle!
Disabled by Default (Enable at your own discretion, has a high likelyhood of making it difficult to communicate via chat with others)
---If your spacebar key does start hitting enter when you're typing. Hit enter once, then move while the chat box is open. This will set the value back to 0. (Every time you hit enter it swaps the value between 0 and 1, if it's 1 it tries to initiate combat casting when you press space)
Spacebar now Toggles "Combat-Casting Mode"
After toying with combat casting, and wishing it was permanently enabled (not a feature yet, but may be in the future)
I figured that most casters neglect this awesome combat pose, because it's far too tedious to manage, so i tried to make it easier for you guys to remember to use it, and make it simple without taking a casting slot or anything.
This has a high chance of constantly hitting "Enter" when you use the spacebar because of limitations on how i'm detecting typing input, as a suggestion i would turn this feature off (Change the variable at the top to 0) unless you don't like talking to people. It works sometimes, but it's also frequently difficult.
-- Soon i'll probably change the hotkey to something not used for typing.
----------------------------------------------How To----------------------------------------------------
You have two choices
EXE
- This version isn't editable, meaning you can't toggle the individual features. But is provided because many users were experiencing issues running the script on Windows Vista/7. (It was running, but not working in game).
You also don't need autohotkey to use this version.
Download the Mediafire link and pop it anywhere you please, then click and enjoy!
(Make sure you run it as administrator, to bypass security settings if you're using Vista or Windows 7.)
www.mediafire.com/file/fabnkgmlqhs7974/Crack-ly's Nwn-Script v1.61.exe
AHK (script)
-This version is editable, meaning you can pop in and change the different features, turning them on and off depending on if you want to use them or not. The script is generally well commented and all features i've identified as "toggleable" are documented and changable at the top, accessed via a simple program like notepad (make sure you save it as "All files" to retain the .ahk). For more experienced users you can see generally how i managed each function and edit things like which hotkeys are bound, and even make some improvements of your own (post improvements, i'd love to see them/add them!)
To run this however you need "Autohotkey"
www.autohotkey.com/download/AutoHotkeyInstall.exe
This version might also not run correctly if you have strict security settings on vista/7, if this is the case it will show up in your taskbar, but not do anything ingame. To solve this; Either run the script as administrator, or if that option's not available make the edits/changes you're interested in, then right click and "Compile" the script into a personal working EXE, which you should be able to run as administrator.
www.mediafire.com/file/9wtmwscuqe9lr0c/Crack-ly's Nwn-Script v1.61.ahk
Tell me what you think/any bugs you guys find so i can attempt to fix them. You can toss a post here or harass me ingame (Account = Mack1510).
____________________________Changelog_____________________________
v1.6
-Updated distribution method. Exe doesn't require autohotkey installed to function, but works exactly the same. Additionally it should work on machines where it didn't before. (Run it as administrator)
v1.59
-Disabled Combatcasting Via Spacebar. It's just beyond my technical powresss to determine when a player was typing or not.
-You can still turn it on, but it may make your spacebar into an enter key sometimes (Requiring you to hit enter, then move to fix)
v1.58
-Completely changed the input command system. Commands are now copy/pasted into chat, as opposed to input individually. This prevents them from activating windows like the spellbook/ect.
-The quick chat window will still probably activate rarely, because paste is Ctrl+V
-Combat-Casting Mode is once again enabled by default, it shouldn't get stuck permanently entering messages every time you hit space anymore.
v1.55
-Spacebar now Toggles "Combat-Casting Mode" when pressed.
: This will not interfere with typing (If it does, tell me)
: You don't need combat casting on your bar to use this!
: This feature can be toggled on/off, and if you guys ask me nicely in a post i can modify the script to allow you to choose from an assortment of combat feats, like parry or flurry of blows/ect.
-Worked on making the script less buggy as a whole, i promise it wont overwrite things anymore soon. Or open wierd-windows and things.
v1.51
-(Fixed) The F3 hotbar was incorrectly saving to 5 and 6, instead of 9 and 6!
-As a result the F3 hotbar should now work.
v1.5
-Fixed a bug where the "v" button no longer worked after using F1/F2/F3
-Slightly increased the speed of hotbar transitions.