flareteam / flare-game

Fantasy action RPG using the FLARE engine
http://flarerpg.org/
Other
1.12k stars 236 forks source link

Powers Hotkeys #781

Open Simon-Charest opened 5 years ago

Simon-Charest commented 5 years ago

There should be Powers hotkeys as in Diablo 1:

https://www.diablowiki.net/Diablo_I_Manual#The_Speedbook_and_Spell_Hotkeys

The hotkeys would actually assign a Power to the right mouse button instead of using it directly. This minimizes the need of using the keyboard during melees.

dorkster commented 5 years ago

How is this different than what we already have? Powers can be assigned to the two main slots (left and right mouse buttons by default) as well as the other hotkey slots (Q,E,R,F,1,2,3,4,5,6).

Simon-Charest commented 5 years ago

Please try playing Diablo 1 again.

The "P" (Powers) hotkey in Flare is the equivalent of the "B" (Spellbook) hotkey in Diablo. But the "S" (Spell) hotkey in Diablo 1 does not have an equivalent in Flare.

In Diablo, it actually changes the spell assigned to the right mouse button on the fly (just like the F5 to F8 keys actually), instead of casting it directly. It is much more intuitive and practical during heavy combats.

Simon-Charest commented 5 years ago

Also, it seems like the 1, 2, 3, 4, 5 and 6 hotkeys do not work on the numpad, whether the numlock is activated or not. Being able to use the numpad could be useful.

dorkster commented 5 years ago

Ah, I see now (it's certainly been some time since I've played a Diablo game). Thanks for clarifying.

Thinking about how to go about assigning the powers, I think right-clicking on the icons in the Powers menu would work. But that wouldn't work for inventory items, which can be used via right click. A context menu is probably the solution here. The options could probably look like:

Side note: Perhaps this could tie in with https://github.com/flareteam/flare-engine/issues/660. So instead of keys to swap between powers, it would be the mouse wheel.

Also, it seems like the 1, 2, 3, 4, 5 and 6 hotkeys do not work on the numpad, whether the numlock is activated or not. Being able to use the numpad could be useful.

The numpad numbers are considered different keys than the number row. You can bind the numpad keys in the Configuration -> Keybindings menu. Each "action" allows two mappings, so the action bar binds can use both the top row and the numpad. Keypad binds will show as "Keypad %N", where %N is the number.

Simon-Charest commented 5 years ago

Thank you very much for the clarifications! :)