Wednesday, January 6, 2010

More queries

Two new queries were created. The first is the Random query requested for the demo and the second is the first casting query which I felt would be needed in many cases in combination with other queries. These queries also required a small enhancement to our console which was not correctly handling nested numerical queries.

Here is an example of both queries:


Lua in the house

We are now supporting lua scripts. These are intended to be used for behavioral scripts, the declarative scripts are still in XML.

To execute a lua script file simply use the ExecuteLuaScript action as below


Where Test.lua is the filename of the script. This can either be ASCII or a compiled script.

To access our console from the Lua scripts, use the RelayCommand as follows:

RelayCommand ('Global.Echo():Text("This is a Lua script")')