Core API Reference: World Script Calling

From Color Infection Wiki
Jump to: navigation, search


Call Script

Call a script. Please read what entity can be used as script value source to learn more.

Input Parameters:

Script to Call
the script to be called.

Output Parameters:

(none)
Condition Call Script

Call a script conditionally. If the input condition result is true, then script 1 will be called. If the input condition result is false , then script 2 will be called. Please read what entity can be used as script value source to learn more.

Input Parameters:

Condition Result
the condition result
Script 1 to Call
one script
Script 2 to Call
another script

Output Parameters:

(none)
Call Bool Function

Call a boolean function and return a boolean value.

Input Parameters:

Booelan Function to Call
the boolean function to be called. Please read what entity can be used as boolean function value source to learn more.

Output Parameters:

Return Boolean Result
the return boolean value
Condtion Call Bool Function
Call a boolean function conditionally and return a boolean value. If the input condition result is true, then boolean function 1 will be called. If the input condition result is false , then boolean function 2 will be called. Please read what entity can be used as boolean function value source to learn more.

Input Parameters:

Condition Result
the condition result
Booelan Function 1 to Call
boolean function 1
Booelan Function 2 to Call
boolean function 2

Output Parameters:

Return Boolean Result
the return boolean value
Condtion Script Multiple Times

Call a script multiple times.

Input Parameters:

Script to Call
the script to be called. Please read what entity can be used as script value source to learn more.
Calling Times
how many times to call the specified script.

Output Parameters:

(none)
Condtion Boolean Function Multiple Times

Call a boolean funcion multiple times. The calling will return until the specified boolean function return a false value.

Input Parameters:

Booelan Function to Call
the boolean function to be called. Please read what entity can be used as boolean function value source to learn more.

Output Parameters:

(none)