Custom procedure is new script??
Is this known? Did I know this before and have forgotten?
A custom procedure counts as a separate script? I've just spent ages debugging before discovering that using kill_this_task() just causes it to go back to the calling procedure within the same script...
Actually I seem to remember something now about it having a different script number. How annoying.
A custom procedure counts as a separate script? I've just spent ages debugging before discovering that using kill_this_task() just causes it to go back to the calling procedure within the same script...
//Dink says "1, 2, 4" void main (void) { say_stop("1", 1); test(); //He shouldn't say this! say_stop("4", 1); } void test (void) { say_stop("2", 1); kill_this_task(); wait(1); say_stop("3", 1); }
Actually I seem to remember something now about it having a different script number. How annoying.
Yeah.. that is messed up.. I learned it the hard way. Also scripts declared in the main procedure can't be used in custom procedures!
You mean variables, not scripts?
In any case, I can see this being very annoying, but also useful in rare circumstances.

In any case, I can see this being very annoying, but also useful in rare circumstances.
"useful in rare circumstances."
Dunno... can't think of any circumstances where this would be useful and there not be some other better way to get the same result.
And yeah I knew about the variables so I suppose I should've thought of this before. Oh well.
I tried returning something to say kill the script but ended up having to shuffle the whole thing around a bit to get it to work.
Dunno... can't think of any circumstances where this would be useful and there not be some other better way to get the same result.
And yeah I knew about the variables so I suppose I should've thought of this before. Oh well.
I tried returning something to say kill the script but ended up having to shuffle the whole thing around a bit to get it to work.
Yeah, using spawn would seem to have the same effect and be less confusing. My memory of these things is fuzzy but I think you can use external to call a function while keeping it on the same script number. Funny that it works like that..