I haven't picked up Game Maker in a while, but there's really no excuse for this. I sat down today and said, "Alright, I need a script that will count out an amount of time before a key will be able to be re-pressed," and got to work.
/* timer()
Depends on: timer_set(seconds)
timer checks to see if the extra amount of time has passed by comparing
global.timeout to the current time. */
time = date_current_time();
if (time >= global.timeout) { return true; }
else { return false; }
/* timer_set(seconds)
Depends on: none
timer_set sets global.timeout as the current time with an amount in seconds added to it. */
var amount;
amount = argument0 * 0.00001182; //approximately one second
global.timeout = date_current_time() + amount;
Of course, right after that I remembered that alarms exist.
So basically, this is a topic for stupid coding stories. Let's hear 'em.