Back to the Vavoom Forum Archives
The 4th Class
// Let's say this is MAP01
script 1 OPEN
{
many things 1;
delay(35);
many things 2;
delay(35);
many things 3;
delay(35);
...
many things 16;
delay(35);
restart;
}
script 2 (void)
{
acs_terminate(1,1); /* The chunk of code where script 1 is terminated, theoretically, could be at any point */
teleport_newmap(2,0);
}
// Now let's say this is a script for MAP02
script 3 (void)
{
acs_execute(1,1);
teleport_newmap(1,0);
}
Granted, the teleport_newmap functions may be arbitrary for my problem.
Basically, what I want to do is break out of script 1 at any line (not just wait until it's finished its cycle) and re-execute it from the beginning upon command.
The trouble is that once I terminate script 1 and re-execute it, it doesn't merely start from the beginning again. It seems to be running TWICE at the same time: once at the beginning (like I asked it), but again at the point where it left off when I terminated it. In other words, let's say I terminate script 1 at many things 8. When I re-execute it, both many things 1 and many things 9 will be active, then many things 2 and many things 10, etc.
Strangely, why is this happening? Why is it not breaking out completely? More importantly, how can I come across this dilemma?Crimson Wizard
The 4th Class
Firebrand
The 4th Class
Firebrand