A function is a piece of code intended to complete a specific task. It can be defined once and called multiple times by different scripts. Using functions can make developing new scripts faster as often used parts of code are already available and just have to be called to get the desired results. In addition, using functions makes the final code better structured and easier to read and maintain.
There are many pre-defined custom functions shipping with 3ds Max, for example for defining object filters in MacroScripts, building rollouts automatically etc. There are also a multitude of freely available 3 rd party scripted functions downloadable from the Web. If you are a new MAXScript user starting to learn the language, using such functions can make your first steps much easier.
A function in MAXScript can take no parameters or require any number of parameters. It is easy to find out what and how many parameters are required by a function by just looking at its definition. Functions that require zero parameters can be called by adding () to the name of the function.
MAXScript for New and Casual Users
Scripted Utilities for New Users
Scripted Plug-ins for New Users
MAXScript DLX Extensions for New Users