[screen_name says:]
so would this following code be considered good use of the return command
NPC Code:
// NPC made by screen_name
// NPC Name: N/A
// Project: N/A
if (playersays(doit)) {
setplayerprop #c, ;
doingit();
setplayerprop #c, this.counter was equal to #v(this.counter);
}
function doingit() {
this.counter=int(random(0,5));
return;
}
now this will make you say this.counter's value without having to say 'doit' again, right
so, if you are using functions in a timeout, you dont necessarily need returns right?? unless something below is using the new value??