This is probably going to sound really noobish, but I'm not much of a programmer. Bassically I'm working on a simple boxing game, I'm using the script below as a timer for the rounds, it counts down 2 minutes, when it reaches zero the next round starts. The problem is I can't seem to reset the timer at the start of each round, it just stays at zero, I hope that made sense.

string time_str;
string temp_str;

var seconds = 120; // number of seconds to be counted down
var temp_seconds;


function count_down()

{
while(seconds > 0)

{
sleep (1);
seconds -= 1;
temp = int(seconds / 60); // compute the number of minutes
str_for_num(time_str, temp);
str_cat (time_str, " : ");
temp_seconds = seconds - temp * 60; // compute the remainder (the number of seconds)
str_for_num(temp_str, temp_seconds);
if (temp_seconds < 10)
{
str_cat (time_str, "0"); // add a zero (if needed)
}
str_cat (time_str, temp_str);

}
}