Skip to content

Call command

Alvin Cheng edited this page Apr 6, 2023 · 3 revisions

Description

This is the call command, this command will call the function in argument 1 with the parameters of the arguments beyond argument 1. Please note that the function MUST By prefixed with FUNC for it to be a callable function. As I mentioned in the variables page

Example

call $FUNC_FUNCTION "<PARAMETER>" "<PARAMETER>";

Simplified syntax

We can also use a simplified syntax to call any functions. To call, we can now treat any function as a native command of chat-script. Or in other words, removing the call from the call command and having the arguments layered on top beyond the command interface. Here is an example of simplified syntax:

$FUNC_FUNCTION <PARAMETER> <PARAMETER>;

Clone this wiki locally