Hi,
I’m trying to override the random function of ChatScript.
To do that, I thought to do something like that :
file.top
s: (shuffle)
$$response = [sortie 1] [sortie 2] [sortie 3] [sortie 4]
^order_output($$response)
filefunction.top
outputmacro: ^order_output($_arg)
{
^log(OUTPUT_ECHO $_arg)
}
But it looks like $$response is already one randomed output.
If I send the randomed selection as below, I have a compilation error:
*** Error- Function ^order_output wrong argument count 1 expected 4 given
s: (shuffle)
^order_output([sortie 1] [sortie 2] [sortie 3] [sortie 4])
So, how can i send the multiple responses available to the function.
I can’t set a fix number of argument because there will be multiple rules using this function.
Thanks;