Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
How to capture the ACSII Dec number of a hot key? For example, when I press "space" in the game, a message of "126" would be displayed. 126 means "space" in ACSII.
Thanks a lot!
Items are hotkeyed to the numpad and you can give abilities the hotkey you want. Then just detect "A unit uses an item" and "Unit begins casting an ability" events.
Bribe's system is useful for anything that deals with strings/characters. It allows you to map characters to an array instead of reading/loading from a hashtable. It still ends up using StringHash() and some division though, so it might not offer much of a speed benefit. For example, my WordWrap/StringSize system maps character sizes to an array with the ascii values as indexes.
About the spellbook method--sadly it is an old myth that doesn't actually work.
Items are hotkeyed to the numpad and you can give abilities the hotkey you want. Then just detect "A unit uses an item" and "Unit begins casting an ability" events.
Bribe's system is useful for anything that deals with strings/characters. It allows you to map characters to an array instead of reading/loading from a hashtable. It still ends up using StringHash() and some division though, so it might not offer much of a speed benefit. For example, my WordWrap/StringSize system maps character sizes to an array with the ascii values as indexes.
About the spellbook method--sadly it is an old myth that doesn't actually work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.