Cool_Down(obj/Technique/T, n)
while(n)
T.cooldown = n
T.suffix = "<font color=red>Cool-Down: [T.cooldown]"
sleep(10)
n --
if(!n)
T.cooldown = 0
T.suffix = "<font color=yellow>Ready</font color>"
break
if(!n)
..()
Problem description:
Thats my way of doing Cool Down. But i want to display mini second.I dont know how to do it so please help :P
Also, the if(!n) is a little redundant, as that condition is assumed once the while() loop terminates (so you might as well move that block outside of the loop).