The Dink Network

Reply to Re: reaction time DMOD

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 13th 2005, 02:04 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
wait_for_button() freezes the entire script until a button is pressed, or stop_wait_for_button is called in another script. So this code won't work:

loop:
wait(1);
&wait += 1;
wait_for_button();
if (&result == 2)
{
say_stop("Reaction time: &wait",1);
return;
}
goto loop;

It'll stop at the wait_for_button();