I'm trying: msg (JS.test())
But I receive the following error:
Error running script: Error compiling expression 'JS.test()': FunctionCallElement: Could find not function 'JS___DOT___test()'
I've tried excluding the JS, no luck either.
Thanks for any help!!!
JS.addText calls generated by
msg), and then returns them to the JS on the frontend to run. So any function you call using the
JS. syntax will be queued to run after your function finishes.
ASLEvent takes 2 parameters: the name of a Quest function, and a string parameter.
So in this case, you would do:
and create a function to print the message passed back:
<function name="TestResponse" parameters="param"> msg (param) </function>
(although unless your test() function returns a string that contains text processor commands, you'd likely want to do: