#How can I create a trigger that checks if a key is pressed?

5 messages · Page 1 of 1 (latest)

swift surge
#

For instance I made a working trigger with the following code:

Type: Custom > Event Type: Status > Check On: Event(s) > Event(s): MODIFIER_STATE_CHANGED

Custom Trigger:
function()
return IsShiftKeyDown()
end

What is the proper syntax for keys like Q, E, R, etc.?

leaden hemlock
#

there's no events for these keys

swift surge
#

Ah i see, it’s only for modifier keys. How would you go about creating a trigger then that checks when a spell is cast?

hoary wasp
#

!castsuccess

zinc forumBOT
#

Combat Log - Spell - Cast Success - Source Unit = Player - spellName/spellID* = <spell's name/ID> - timed = <however long it lasts> https://i.imgur.com/7D2MU44.png (click image for more context) * No spellID in Classic