Posted August 03, 2014
high rated
LINK TO SCRIPT: http://s000.tinyupload.com/index.php?file_id=54517327229281657392
Spent a good deal of time working this out!
But being able to play Gothic 3 with a controller is a treat!
I intended this for the Xbox 360 controller, so I don't know how other controller would behave.
For the controller to be supported, you need:
- obvisouly, a controller
- Autohotkey
- the scripts
- optional but handy if you want to edit the script, Notepad++
To start, just double click Gothic3Controller.ahk! You can exit the script by right clicking the Autohotkey icon in the tray bar.
Now, the controls:
Left stick = Arrow keys (can be used to scroll dialog options)
Left stick button = Enter key
Right stick = Mouse cursor
Right stick button = Unused
D-Pad up = Sheathe weapons
D-Pad right = Life potion
D-Pad left = Mana potion
D-Pad down = Endurance potion
Start = Scroll screens (inventory, character, etc.)
Back = Escape key
A = Jump
B = Swap set of current mode
X = Take all
Y = Sneak (toggle)
LB = Run (hold)
RB = Change mode (melee/range/magic)
LT = Left mouse button (click or hold)
RT = Right mouse button (click or hold)
As you can see, I added nice little features called "mode" and "sets". It lets you define weapon sets for three modes: melee, range and magic (in order). With RB you switch mode and with B you swap sets inside a mode.
By default, each mode contains two sets and to each set is assigned one or two quick-slots as scripted:
; Sets details
; Each digit corresponds to quick-slot
; If total number of sets increased
; Add as many sets (xxxxxSetx, etc.)
MeleeSet1 = 12
MeleeSet2 = 3
RangeSet1 = 45
RangeSet2 = 46
MagicSet1 = 78
MagicSet2 = 79
In this code, ";" at the start of a line indicates a comment (to inform readers) thus not taken into account when run.
So, for example, in my game I use MeleeSet1 for my sword and shield that occupy slots 1 and 2. RangeSet2 corresponds to my bow and fire arrows in slots 4 and 6. For MagicSet1, I use a magical staff and ice lance spell slotted to 7 and 8.
The code isn't flawless yet and sometimes weapons aren't drawn properly. In that case, just use D-Pad up to draw again. I'm open to suggestions for added functions or better functionnality. Have fun :) !
Spent a good deal of time working this out!
But being able to play Gothic 3 with a controller is a treat!
I intended this for the Xbox 360 controller, so I don't know how other controller would behave.
For the controller to be supported, you need:
- obvisouly, a controller
- Autohotkey
- the scripts
- optional but handy if you want to edit the script, Notepad++
To start, just double click Gothic3Controller.ahk! You can exit the script by right clicking the Autohotkey icon in the tray bar.
Now, the controls:
Left stick = Arrow keys (can be used to scroll dialog options)
Left stick button = Enter key
Right stick = Mouse cursor
Right stick button = Unused
D-Pad up = Sheathe weapons
D-Pad right = Life potion
D-Pad left = Mana potion
D-Pad down = Endurance potion
Start = Scroll screens (inventory, character, etc.)
Back = Escape key
A = Jump
B = Swap set of current mode
X = Take all
Y = Sneak (toggle)
LB = Run (hold)
RB = Change mode (melee/range/magic)
LT = Left mouse button (click or hold)
RT = Right mouse button (click or hold)
As you can see, I added nice little features called "mode" and "sets". It lets you define weapon sets for three modes: melee, range and magic (in order). With RB you switch mode and with B you swap sets inside a mode.
By default, each mode contains two sets and to each set is assigned one or two quick-slots as scripted:
; Sets details
; Each digit corresponds to quick-slot
; If total number of sets increased
; Add as many sets (xxxxxSetx, etc.)
MeleeSet1 = 12
MeleeSet2 = 3
RangeSet1 = 45
RangeSet2 = 46
MagicSet1 = 78
MagicSet2 = 79
In this code, ";" at the start of a line indicates a comment (to inform readers) thus not taken into account when run.
So, for example, in my game I use MeleeSet1 for my sword and shield that occupy slots 1 and 2. RangeSet2 corresponds to my bow and fire arrows in slots 4 and 6. For MagicSet1, I use a magical staff and ice lance spell slotted to 7 and 8.
The code isn't flawless yet and sometimes weapons aren't drawn properly. In that case, just use D-Pad up to draw again. I'm open to suggestions for added functions or better functionnality. Have fun :) !
Post edited October 21, 2016 by Abelf