Multi keyboard combination in Developer Help
|
|
I've learned how to use interface to setup macros and I want to able to allow player to enter a cobination of keys to execute verbs. EX ASDF(Spacebar) = nameOfAttack. I was thinking that I could have detectable key combinations setup as macros and then have a proc that checks to see if the executed combinations fit whats in a specific list. I'm not sure whether this is the most effecient way but regardless how would I be able to track what keys or macros a player presses?
If you have a suggestion of a method that would be better to use please don't hesitate to ask.
|
Ex;
Then you would need to edit your interface file's Macro list and have A,S,D,F keys execute their corresponding verbs. Ex:
A:
Key - A
Command - keyA
AOff:
Key - A
Command - keyAOff
Check-Mark - When key is released
To go more in-depth, if you want the nameOfAttack() to happen automatically, you would simply put a check in preferably keyF() like so: