//Base Code
obj/var/list/cooldowns = list()
obj/proc/cooldown()
for(var/v in cooldowns)
if(world.time == cooldowns[v])
cooldowns[v] = 5
//Where its implemented
/skills/Regen
var
cooldown
icon_state="regen"
DblClick()
if(cooldowns["Regen"])
usr<<"You can't use Regen yet!"
return
else
usr<<"You used Regen!"
if(usr.health <= usr.max_health)
usr.health += usr.max_health - usr.health
cooldowns["Regen"] = world.time + cooldown
Problem description:
When i run it i dont get any runtime errors, but when i use it the cooldown never runs out and i cant use the skill anymore.
is only a hypothesis if not im so sorry and help from another user:-s