For a timer counting down, try something like this. This code is buggy, because I have no reference right now.
if(v12 == 0){ // where v12 is minutes
v30 = 5; // where 5 is the time you want to count down from
}
if(v11 >= 1){ //v11 is seconds
v31--; //minuses 1 every second.
}
if(v31 == 0){
v30--; //takes one minute
v31 = 60; //sets the seconds back to 60.
}
if(v30 == 0){ // if the minutes are zero
print("THE END");
}
You could also try,
if(v12 == 5){
print("THE END");
}