Hello,
I have trouble understanding how Ork Lua Event node works.
for example how can I return a Dialogue System variable? what should I write in Lua field?
I tried
Variable["MyVar"]
return Variable["MyVar"]
but none of these worked. When I tried instead setting the variables Variable["MyVar"]=1 it worked.
Ork lua event question
-
- Posts: 112
- Joined: Tue Jan 19, 2016 11:37 pm
Re: Ork lua event question
Ok I figured my problem after looking at source code behind the node.
It returns variable as string.
It would be nice if you either mentioned this somehow in node help text, or better if you allowed user to specify which type of variable to return.
It returns variable as string.
It would be nice if you either mentioned this somehow in node help text, or better if you allowed user to specify which type of variable to return.
Re: Ork lua event question
Sorry about that. You're right. The ability to return different variable types was a frequent request among ORK + Dialogue System users. I was waiting to test compatibility with ORK 2.6.3 before releasing the latest version of the integration package . ORK 2.6.3 just came out today; I confirmed compatibility and released the package.
You can download it here: ORK_Support_2016-01-30.unitypackage or on the Dialogue System Extras page.
The Run Lua action now lets you specify a return type.
The package also adds a Show Variable Alert event that uses an ORK StringValue instead of a string literal. (It's a new event to prevent breaking projects that use the existing Show Alert event.)
You can download it here: ORK_Support_2016-01-30.unitypackage or on the Dialogue System Extras page.
The Run Lua action now lets you specify a return type.
The package also adds a Show Variable Alert event that uses an ORK StringValue instead of a string literal. (It's a new event to prevent breaking projects that use the existing Show Alert event.)