Page 1 of 1

use Keyboard to attack?

Posted: Thu Dec 27, 2012 3:01 pm
by winsom
I want to assign a key-press to each weapon inventory slot. I do not want to do combats with mouse-clicks.

Has anyone worked up a solution that might help me? Something very similar to what I need above.

I have not played very far and I can already tell this will be an game-killing issue for me, which is too bad.

I have not gotten into the magic system yet. I assume I will also need keyboard assignments for activating runes, or whatever.

Keyboard-only please, as much as possible. Thats how I want to play. Thanks.

Re: use Keyboard to attack?

Posted: Thu Dec 27, 2012 4:16 pm
by JohnWordsworth
Hi Winsom, there is a piece of software called 'GlovePIE' that lets you emulate/control system inputs/outputs using scripts.

I've written a preliminary version of a Legend of Grimrock Keyboard Command script that maps the keys Y, U, I, O, H, J, K, L to the 8 attack buttons for the 4 characters. This doesn't include any system for spell casting, but if you find this useful - let me know and I'll add spellcasting for the bottom right character (character 4) and map that to the NUMPAD (I might do it anyway for a laugh).

To use this...

1. Download GlovePIE, extract it to a folder on your PC and run the .EXE file.

2. Download the latest version of my Grimrock Keyboard GlovePIE Script.

3. Open the script with GlovePIE and hit 'Run'. Then play Grimrock in full screen mode.

Note that the keyboard literally moves the mouse cursor around the screen using GlovePIE so you must run the game in full screen mode. It should work with any resolution however (as it uses a uniform coordinate system).

Edit: I figured it was just a bit of copy and pasting to add spell-casting and a few other useful keys, so I went ahead and did it. Unfortunately, GlovePIE doesn't allow you to define arrays or functions I don't think - so it's very long-handed.

Version 0.2 supports...

Y, U, I, O, H, J, K, L: Attack buttons (right click on champion hands) in same layout as keys.
Z: Grab at the default 'alcove' position.
X: Grab at the default 'torch' position.
C: Click at the default door chain position.
NumPad 0: Short cut to right hand of 4th character.
NumPad 1-9: Spell caster runes for 4th character.
NumPad Enter: Finish and cast spell for 4th character.

As you can see, the script assumes your spell caster is in the bottom right slot (4th champion).