<scriptheader>,{
// Step in, because you are in a curly.
set bla, rand(5);
if(bla == 0) {
// Now step in again, because you are in a curly again
mes "Try again.";
close;
// Place the closing curly on the same level of tabbing as where the opening curly was.
}
mes "Countdown initialised";
for(set .@i, bla; .@i > 0; set .@i, .@i - 1) {
// Jump in again.
if(.@i == 1 && rand(2)) {
// Jump in again.
mes "Countdown aborted. Have a nice day.";
close;
// Jump back to the level of the if statement which we are in right now.
}
mes .@i;
next;
// Jump back to the level of the for statement that we are in right now.
}
mes "0";
close2;
dispbottom "BOOM!";
percentheal -100, 0;
end;
// And jump back one more level to the level of the scriptheader.
}