The Dink Network

Reply to Re: i could use some help

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:
 
 
May 28th 2008, 10:56 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Here's a sample script for a timer. Pretty simple actually.

void main ()
{
script_attach(1000);

//number of seconds on the timer
int &count = 60;
int #
loop:
if (&count > 0)
{
if (&count == 1)
&num = say_xy("&count second remaining",0,0);

else
&num = say_xy("&count seconds remaining",0,0);

sp_kill(&num,1000);
wait(1000);
&count -= 1;
goto loop;
}
say_stop("Oh no, I'm out of time!",1);
kill_this_task();
}