From what Twilight has told me, public functions cannot have default values, but stocks can. An example would be:
Code:
stock functionname(param1,param2,param3 = 5) {
// so-and-so!
}
This makes the default value of param3 as 5. You can then call it as "functionname(7,2)" for example, and param3 will be 5 since you didn't define it.
Note that stock functions aren't evaluated by the compiler unless you use them. So all of the code inside of functionname could be totally crappy and not even Small and it would compile fine unless you use it in your script. I could be wrong, but I don't think it will evaluate it if you call it via a set_task, I think you have to call it directly.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS