function element

From QuestWiki
Jump to: navigation, search
<function name=" name " optional type=" type " optional parameters=" parameters "> script </function>

Creates a function.

If no type is specified, the function does not return a value.

If the function does return a value, the type should be one of the valid Attribute Types. Return a value within the function using the return command.

If the function takes parameters, the parameters should be specified as a comma-delimited list.

For example:

<function name="FormatObjectList" type="string" parameters="preList, parent, preFinal, postList">
  ...
</function>
Personal tools
Namespaces
Variants
Actions
Navigation
Quest Documentation
Toolbox