1

Тема: Кулдаун способностей

помогите пожалуйста, не могу понять как реализовать таймер кулдауна способностей
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
;spell
spell_q = {sc10 SetTimer spell_q_kd, 6000} ;q
spell_w = {sc11 SetTimer spell_w_kd, 4000} ;w
spell_e = {sc12} ;e
spell_r = {sc13} ;r
spell_a = {sc1E} ;a
spell_s = {sc1F} ;s
spell_d = {sc20} ;d
spell_f = {sc21} ;f

; Сooldown
SetTimer spell_q_kd, 6000
SetTimer spell_w_kd, 4000
SetTimer spell_e_kd, 7000
SetTimer spell_r_kd, 5000
SetTimer spell_a_kd, 1000
SetTimer spell_s_kd, 4000
SetTimer spell_d_kd, 7000
SetTimer spell_f_kd, 8000

; auto
F1::
if spell_q_kd = 0
SendInput spell_q
else
{if spell_w_kd = 0
SendInput, spell_w
}
return