Pokemon3D Script API Documentation

Global Functions

Global Functions are functions that can be accessed from any function anywhere in a script.

Methods


Static Method eval
Static
Executes the parameter as Kolben script code and returns the result.

Return: anyArguments: string codeUsage: var result = eval(code);

Static Method isFinite
Static
Returns whether the input is a finite number.

Return: boolArguments: any valueUsage: var result = isFinite(value);

Static Method isNaN
Static
Returns whether the input is NaN (not a number).

Return: boolArguments: any valueUsage: var result = isNaN(value);

Static Method nameof
Static
Gets the name of an object.

Return: stringArguments: any variableUsage: var result = nameof(variable);

Static Method sizeof
Static
Gets the length/size of a variable's content.

Return: intArguments: any variableUsage: var result = sizeof(variable);

Static Method sync
Static
Waits for async tasks to complete.

Signatures:
Return: voidUsage: sync();

Return: voidArguments: string[] taskIdsUsage: sync(taskIds);

Static Method toComplex
Static
Converts a primitive value (string, bool, number) into a prototype instance of that type.

Return: anyArguments: any primitiveUsage: var result = toComplex(primitive);

Static Method toPrimitive
Static
Converts a prototype instance (string, bool, number) into its primitive value.

Return: string or bool or intArguments: any primitiveUsage: var result = toPrimitive(primitive);

Static Method typeof
Static
Gets the type name of a variable's content.

Return: stringArguments: any variableUsage: var result = typeof(variable);