_std/macros/cooldown.dm
ON_COOLDOWN | |
---|---|
GET_COOLDOWN | like ON_COOLDOWN but only gets the cooldown, doesn't refresh it |
OVERRIDE_COOLDOWN | overrides cooldown to this value |
EXTEND_COOLDOWN | overrides cooldown to the maximum of the current cooldown and this value |
Define Details
EXTEND_COOLDOWN
overrides cooldown to the maximum of the current cooldown and this value
GET_COOLDOWN
like ON_COOLDOWN but only gets the cooldown, doesn't refresh it
ON_COOLDOWN
Simple Cooldown System
Easy way to set cooldowns on an object.
Arguments:
- COOLDOWN_OWNER: The object to store the cooldown data on. Can be
global
. - ID: The specific ID of the cooldown, ex. "ahelp"
- DELAY: The amount of time(ds) that you want the cooldown to last.
Usage:
if(!ON_COOLDOWN(global, "butt_talker", src.butt_cooldown))
speak(pick("butts", "butt"))
OVERRIDE_COOLDOWN
overrides cooldown to this value