• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] ACSII and capturing it with Jass

Status
Not open for further replies.
Level 11
Joined
Oct 11, 2012
Messages
711
Alright. So what is the purpose of Bribe's system?

Edit:
I also want to know how is this possible as Dark_Gandalf said:
http://www.hiveworkshop.com/forums/world-editor-help-zone-98/detect-keys-jass-186864/#post1811674

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. :(
 
Level 11
Joined
Oct 11, 2012
Messages
711
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. :(

Well, it works but you can't detect key holding (releasing too, obviously).

Thank you all, +Rep if I can.
 
Status
Not open for further replies.
Top