well maybe i should add alittle to mine just to be sure there isn't much mistake on it
Code:
new x
public this_first (id) {
<execute this_second every 0.5 seconds for 10 seconds>
<execute this_third after the above is complete>
}
public this_second (id) {
x += 1
if (x = 20) {
set_task(0.5,"this_third")
}else {
set_task(0.5,"this_second")
}
public this_third (id) {
}